Melodeon.net Forums

Discussions => General Discussion => Topic started by: Gandy on June 17, 2012, 07:31:07 PM

Title: ABC Explorer stopped rendering score
Post by: Gandy on June 17, 2012, 07:31:07 PM
Hi,

I wonder if anyone's come across this before.  I haven't used ABC Explorer for a while, but its always been pretty much flawless in the past.   Now it sometimes doesn't display the score.  Instead it shows a green error message "Can't display the score -> second attempt, please wait" followed a second or so later by "Can't display the score: invalid ABC code".   It seems to depend on the file (or tune) as well, as it works with a few files.  I'm pretty sure its not the ABC content, as most of these files have previously been used to generate and save PDF output.

Anyone seem anything similar?

Thanks, Tony S
Title: Re: ABC Explorer stopped rendering score
Post by: summerstars on June 17, 2012, 07:42:00 PM
If you send the content of one of the files causing the problems, we could then have a look at it for and try it in our copies etc
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 17, 2012, 08:18:05 PM
Thanks.  Here's an example, from a file last modified last November so it clearly worked back then ...

X:1
T:Les Novis (trans.C)
C:Stephane Delicq
M:3/4
L:1/8
K:C
[|:CD|E3D EF|E2 CDEF|G3A GE|G4AB|c3B cd|c2 B2 A2|G3E GB|A4 DE|F3E FG|
F2FE DF|E3D EF|E4 A,B,|C2CB, CE|1D2 A,B,CE|D2E2E2|D4:|2D3G, B,D|C6|C6|]
|:CA eC Ae|B,E d4|A,F cA, Fc|G,E B4|A,F AA, FA|A,C AA, CA| A,E AA, EA|1G6:|2G4|]
Title: Re: ABC Explorer stopped rendering score
Post by: Roger Howard on June 17, 2012, 08:26:03 PM
I've just tried your file in my copy of ABCExplorer and it works fine - perhaps you should remove the programme and then reinstall. That should sort out any corrupt programme files. Good luck!

Roger
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 18, 2012, 09:08:23 AM
Thanks.  I didn't really think it was the content, not just because that file used to work fine (on the same computer) but also because I get the malfunction if I create a new file, with new tune.  Sometimes with both new and existing files it draws the score, then it disappears to be replaced by those error messages.   

I should have mentioned that before posting here I uninstalled the program, and uninstalled Ghostscript, made sure all their files were gone, then reinstalled.   I didn't check for left over registry entries, so might try that again tonight.    I'm guessing it's a Ghostscript problem as everything else work, for example the tunes play.  Running abcm2ps from the command line on the same files works with no errors, but I don't know how to sanity check the contents of the .ps file it creates. 

Tony S
Title: Re: ABC Explorer stopped rendering score
Post by: Anahata on June 18, 2012, 09:20:01 AM
Running abcm2ps from the command line on the same files works with no errors, but I don't know how to sanity check the contents of the .ps file it creates. 

Do you have ghostview (gv) ? (GSview on Windows)

That's the first thing I'd use: simply view the file. It complains plenty if there's anything wrong with it.
Of course GV is basically a front end for ghostscript, so it may be that if your ghostscript  installation is broken gv/GSview won't work either.

I'm sure the suggestions made have been on the right track: ABC Explorer is a bundle of separate programs tied together with a graphical user interface, and it looks very much like one of those components has got broken.
Title: Re: ABC Explorer stopped rendering score
Post by: Simon on June 18, 2012, 10:53:07 AM
I don't know anything about ABC explorer and how strict it is, but you could try using [1 and [2 for the repeats instead of the shortcuts.
Title: Re: ABC Explorer stopped rendering score
Post by: summerstars on June 18, 2012, 10:57:19 AM
Gandy,

This might be an obvious question which you have already considered - Are we talking about about abc files which contain single tunes?  or is the problem with individual tunes within a larger abc file - If the latter then the problem may not lie withing the abc code for the tune that appears to be havng problms, but could be elsewhere within the file.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 18, 2012, 01:20:16 PM
Obvious questions are good. Most are one tune per file.   However that doesn't mean there isn't something else in the file that's upsetting it.  I'll try something created from scratch in Notepad or something.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 18, 2012, 01:54:14 PM
Do you have ghostview (gv) ? (GSview on Windows)

Thanks, I'll follow up Ghostview.   A quick look from here suggests its ghostscript version specific, which might be a problem as ABC Explorer insists on using v7.06 which is earlier than those referenced on the GSview pages.   I'll try on a good installation first.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 18, 2012, 07:45:21 PM
Hmm ... not much progress.  If I convert the file using the abcm2ps command line manually ... for example ..

c:abcm2ps "les novis.abc" -s0.65 -O les.ps

Then I can open the output file (les.ps in this case) perfectly with Gsview.  I haven't looked up that -s0.65 option, but it's what ABC Explorer says it uses as the command option so thought I'd better include that.   This test converts the whole file, which has the tune in two different keys, so doesn't quite replicate the fault scenario.
Title: Re: ABC Explorer stopped rendering score
Post by: Anahata on June 19, 2012, 08:49:23 AM
Then I can open the output file (les.ps in this case) perfectly with Gsview.  I haven't looked up that -s0.65 option

Scale factor. Default is 0.75 so your option is making the music a little smaller.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 20, 2012, 07:40:08 PM
Well it looks like I'm completely goosed.   The .ps files created by ABC Explorer, or by abcm2ps, all view perfectly in Gsview.   ABC Explorer exports to PDF etc work fine as well (except the on screen preview doesn't show).   

I guess its time to start looking for an alternative application.   The prospect of rebuilding my PC or restoring back to it's configuration a couple of months ago doesn't bear thinking about.

Any recommendations for alternatives?
Title: Re: ABC Explorer stopped rendering score
Post by: Tyker on June 20, 2012, 08:22:26 PM
Have you tried uninstalling via CCleaner or Revo Uninstaller ?
Title: Re: ABC Explorer stopped rendering score
Post by: Anahata on June 20, 2012, 09:09:34 PM
"Can't display the score: invalid ABC code".

Re-reading your original message: this suggests it's the conversion from ABC to postscript that is going wrong, not the displaying of the .ps file

Can you go to the command line, change to a directory where you have an ABC file, and type

abcm2ps xxxxx.abc

where xxxxx.abc is substituted with a real file name
You might have to find the abcm2ps.exe file and put the full path in front of it; no idea where but it's  going to be be something like
"c:\Program Files\abc explorer\bin\abcm2ps.exe"

If you get it to run, and there are error messages, they will tell you what abcm2ps thinks is wrong with the ABC code.

(I hope you know your way around the Windows command line processor; I used DOS for years and I still use the command line a lot in Linux, where it's actually very powerful)
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 20, 2012, 09:29:23 PM
Cheers.  I get no error messages when I do that, for example ....

E:\Tony\ABC>c:abcm2ps led.abc -O=
abcm2ps-5.9.25 (November 2, 2011)
File led.abc
Output written on led.ps (1 page, 1 title, 20180 bytes)

E:\Tony\ABC>


Then I can open led.ps in Gsview and it looks fine.

I think what's happening in ABC Explorer is that something is taking too long, because there's always a pause before the error comes up.  And its only when rendering for screen display rather than for PDF export.   Some funnies, sometimes the score displays OK, but the error appears after a few seconds, or when the cursor's moved or when the ABC code is amended.   And strangest of all the Dam Busters' March works perfectly, always, but the error appears if I add another tune into that file.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 22, 2012, 10:57:32 AM
A bit more digging and it looks like it is the rendering of the .ps file that is failing, rather than the generation.   In the temp directory, during normal operation you see a tmp.abc, tmp.ps and tmp.bmp file representing the currently displaying tune.   On one of the "bad" tunes the tmp.abc and tmp.ps files appear but not the bmp.    The .ps file is locked by ABC Explorer and can't be opened, which suggests to me that abcm2ps has completed.   If you shutdown the application then the .ps file looks correct in Gsview.

I thought I had fixed it by switching off anti-virus, and there certainly seems some improvement but not a complete fix.
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on June 24, 2012, 06:39:17 PM
Fixed!   Google Drive was the culprit, and removing it resolved the problem.   I do need it installed though, but I have found that temporarily shutting it down while using ABC Explorer is a work-around.
Title: Re: ABC Explorer stopped rendering score
Post by: Wena on September 09, 2012, 05:23:31 PM
EasyABC Error

I have this error massage, can you tell me what it means? I am new to EasyABC

- In tune 'Rwyf4':
Warning in line 10.94: Line overfull (767pt of 751pt)

Wena
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on September 09, 2012, 05:41:09 PM
I think Easy ABC is a different program.  Anyway, maybe the message is pretty much what it says, maybe that line is too long for the program.   Post your ABC code here and I'm sure someone will comment.
Title: Re: ABC Explorer stopped rendering score
Post by: Anahata on September 09, 2012, 06:07:07 PM
I have this error massage, can you tell me what it means? I am new to EasyABC
Warning in line 10.94: Line overfull (767pt of 751pt)

Your ABC code is asking it to cram too many notation symbols into one line.
Usually the cure is to insert a line break so the printed line has less in it shorter but of course you may then need to adjust your line breaks in the rest of the tune so the music is distributed evenly.

The "line 10.4" part of the error message means the problem was discovered in line 10 of your ABC text at the 4th character in the line.
The "767pt of 751pt" means the printed line would be 767points wide, but your paper and margins only allow you 751 points width (a point is a typographical unit of distance , 1/72 inch or about 0.353mm.)

ABC conversion programs will stretch or compress the generated image to fit the line, but they have limits, especially with compressing, to prevent your from squashing the printed notes together so much so they would become unreadable.
Title: Re: ABC Explorer stopped rendering score
Post by: Pete Dunk on September 09, 2012, 06:21:52 PM
I occasionally use Easy ABC as I find it useful for certain processes. I've never seen an error message like that when using it. The Village Music Project limit the number of characters per line used in it's transcriptions to 72 as some software cannot handle longer lines:

X:126
T:Chances THO1.126, The
M:9/8
L:1/8
Z:vmp. Peter Dunk 2012.from a transcription by Fynn Titford-Mock 2006
B:Thompson's Compleat Collection of 200 Favourite Country Dances Volume I.
Q:3/8=100
K:G
c|TB2 g Bcd efg|TB2 g Bcd cAF|\
B2 g Bcd efg|1[G2G,2]g (f/g/a)f g2:|2[G2G,2]g (f/g/a)f g3||
|:[G2G,2]g (f/g/a) gdB|[G2G,2]g faf bge|\
[G2G,2]g (f/g/a) gdB|ecA dBG AFD:|

The backslash at the end of the first and third lines tells the software to treat next line as part of this line, therefore the four lines of text only generate to lines of music in the score. I've not tried Easy ABC  with long lines of text but I'll have a go next time I have the laptop out and see what happens.
Title: Re: ABC Explorer stopped rendering score
Post by: Pete Dunk on September 09, 2012, 06:25:09 PM
Oops! Sorry Anahata, I've cross posted  :|bl
Title: Re: ABC Explorer stopped rendering score
Post by: Simon on September 14, 2012, 10:19:05 AM
I occasionally use Easy ABC as I find it useful for certain processes. I've never seen an error message like that when using it.
abcm2ps has an auto line break option (-c) which solves the problem (in exchange for less control over the output).
Title: Re: ABC Explorer stopped rendering score
Post by: Ben Thackeray on January 29, 2013, 10:00:29 AM
Hi I'm a recent user of ABCexplorer and have the same intermittent failure to render the score problem. I found that "accepting" the edit and then clicking on "print" and then "cancel" resolves the problem, but it regularly re-occurs. Does this add anything useful?
Title: Re: ABC Explorer stopped rendering score
Post by: Gandy on January 29, 2013, 03:11:45 PM
Hi I'm a recent user of ABCexplorer and have the same intermittent failure to render the score problem. I found that "accepting" the edit and then clicking on "print" and then "cancel" resolves the problem, but it regularly re-occurs. Does this add anything useful?
I will try that.   I thought I'd found the fix by disabling Google Drive, but the problem still keeps coming back.  I've been using EasyABC as an alternative, but I really prefer ABC Explorer. 
Thanks
SimplePortal 2.3.5 © 2008-2012, SimplePortal