Problem while converting

  8 posts   Feedicon  
Replies: 7 - Last Post: April 03, 2012 12:45
by: Hervé Bitteur
showing 1 - 8 of 8
 
Posted: February 22, 2012 08:27 by Jester
Hello!!Smile

I'm using audiveris to convert a pdf score to music XML so that musescore can identify it! While i'm tryin to convert(via the musescore plugin or via audiveris itself) i get an error message. the log goes something like this:

omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: MEASURES
omr.score.entity.Page.dumpMeasureCounts(Page.java:419) -- INFO: 0 raw measure: []
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: STICKS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SYMBOLS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: PAGES
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SYMBOLS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: PAGES
omr.step.Stepping.processScore(Stepping.java:299) -- WARNING: Error in performing [SCALE, GRID, SPLIT, MEASURES, STICKS, SYMBOLS, PAGES, SCORE, EXPORT] [java.lang.NullPointerException]
java.lang.NullPointerException
at omr.score.PartConnection.connectScorePages(PartConnection.java:197)
at omr.score.ScoreReduction.reduce(ScoreReduction.java:111)
at omr.step.ScoreStep.doit(ScoreStep.java:114)
at omr.step.AbstractStep.doStep(AbstractStep.java:190)
at omr.step.ScoreStep.doStep(ScoreStep.java:86)
at omr.step.Stepping.doOneScoreStep(Stepping.java:413)
at omr.step.Stepping.scheduleScoreStepSet(Stepping.java:631)
at omr.step.Stepping.processScore(Stepping.java:289)
at omr.Main$1.call(Main.java:175)
at omr.Main$1.call(Main.java:163)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
omr.Main.doMain(Main.java:436) -- INFO: Checking 1 task(s)
omr.Main.doMain(Main.java:455) -- INFO: SHUTTING DOWN ...

Any help will be great!!Smile
 
Posted: February 22, 2012 19:00 by Hervé Bitteur
Hi Jester
The second line says that 0 measures have been detected by the MEASURES step, which is bad news for the following steps! Smile
Without any other information, it's hard to figure out what is happening.
Could you file an issue for this? Simply use the Issue Tracking link in the left column of this web page.
Provide a link to the input image, so that we can reproduce this behavior.

Thanks
/Hervé
 
Posted: March 15, 2012 03:52 by rayseb
Hello y'all I'm new to everything, anyway this the report generated when I try to convert a pdf file:

omr.CLI.printCommandLine(CLI.java:518) -- INFO: Command line parameters: audiveris -batch -option omr.log.Logger.printStackOnWarning=TRUE -option omr.log.Logger.printStackOnWarning=TRUE -input CHmmmUsers/RayDad/Music/Kingdom Melodies/WeThank.pdf -export CHmmmUsers/RayDad/Music/Kingdom Melodies/WeThank.xml
omr.CLI.stopUsage(CLI.java:533) -- WARNING: Unknown command '-OPTION OMR.LOG.LOGGER.PRINTSTACKONWARNING=TRUE'
omr.CLI.stopUsage(CLI.java:566) -- INFO:
Command line syntax:
java -jar <audiveris.jar> [parameters*]
Parameters syntax:
[-help] Prints help about command line interface and stops
[-batch] Specifies to run with no graphic user interface
[-step (STEPNAME|@STEPLIST)+] Defines a series of target steps
[-option (KEY=VALUE|@OPTIONLIST)+] Defines a series of key=value constant pairs
[-script (SCRIPTNAME|@SCRIPTLIST)+] Defines a series of script files to run
[-input (FILENAME|@FILELIST)+] Defines a series of input image files to process
[-bench (DIRNAME|FILENAME)] Defines an output path to bench data file (or directory)
[-export (DIRNAME|FILENAME)] Defines an output path to MusicXML file (or directory)
[-midi (DIRNAME|FILENAME)] Defines an output path to MIDI file (or directory)
[-print (DIRNAME|FILENAME)] Defines an output path to PDF file (or directory)

Known step names are in order (non case-sensitive):
LOAD : Reload the sheet picture
SCALE : Compute general scale
GRID : Retrieve the grid of all systems
SPLIT : Split all data per system
MEASURES : Retrieve Measures from Bar sticks
STICKS : Extract vertical & horizontal sticks
SYMBOLS : Apply specific glyph patterns
PAGES : Translate glyphs to score items
SCORE : Merge all pages into one score
PRINT : Write the output PDF file
PLAY : Play the whole score
MIDI : Write the output MIDI file
EXPORT : Export the score to MusicXML file
omr.Main.process(Main.java:469) -- WARNING: Exiting ...

I don't have a clue at all so any help is appreciated. I installed Musescore on two computers one with windows vista ultimate and the other with windows 7. This report is generated on the vista OS.
 
Posted: March 19, 2012 17:08 by rayseb
hi again this the error report maybe a little better:
omr.CLI.printCommandLine(CLI.java:518) -- INFO: Command line parameters: audiveris -batch -option -option omr.log.Logger.printStackOnWarning=TRUE -input CHmmmUsers/Rayd/Music/Sing/Song1.pdf -export CHmmmUsers/Rayd/Music/Sing/Song1.xml
omr.CLI.stopUsage(CLI.java:533) -- WARNING: Found no parameter after command 'OPTION'
omr.CLI.stopUsage(CLI.java:566) -- INFO:
Command line syntax:
java -jar <audiveris.jar> [parameters*]
Parameters syntax:
[-help] Prints help about command line interface and stops
[-batch] Specifies to run with no graphic user interface
[-step (STEPNAME|@STEPLIST)+] Defines a series of target steps
[-option (KEY=VALUE|@OPTIONLIST)+] Defines a series of key=value constant pairs
[-script (SCRIPTNAME|@SCRIPTLIST)+] Defines a series of script files to run
[-input (FILENAME|@FILELIST)+] Defines a series of input image files to process
[-bench (DIRNAME|FILENAME)] Defines an output path to bench data file (or directory)
[-export (DIRNAME|FILENAME)] Defines an output path to MusicXML file (or directory)
[-midi (DIRNAME|FILENAME)] Defines an output path to MIDI file (or directory)
[-print (DIRNAME|FILENAME)] Defines an output path to PDF file (or directory)

Known step names are in order (non case-sensitive):
LOAD : Reload the sheet picture
SCALE : Compute general scale
GRID : Retrieve the grid of all systems
SPLIT : Split all data per system
MEASURES : Retrieve Measures from Bar sticks
STICKS : Extract vertical & horizontal sticks
SYMBOLS : Apply specific glyph patterns
PAGES : Translate glyphs to score items
SCORE : Merge all pages into one score
PRINT : Write the output PDF file
PLAY : Play the whole score
MIDI : Write the output MIDI file
EXPORT : Export the score to MusicXML file
omr.Main.process(Main.java:469) -- WARNING: Exiting ...

What is it not able to do and how can I help it? I would like to see the xml file as in the you-tube video successfully converted a pdf file to xml for musescore, thx for any help .
 
Posted: March 19, 2012 21:51 by rayseb
Hello yet again hopefully a better error report, help!

omr.Main.process(Main.java:478) -- INFO: Running in batch mode

omr.Main.doMain(Main.java:381) -- INFO: Submitting 1 task(s)
omr.Main$1.call(Main.java:161) -- INFO: Launching [EXPORT] on CHmmmUsers/Rayd/Music/Sing/Song1.pdf

omr.sheet.picture.PictureLoader.loadImages(PictureLoader.java:102) -- INFO: Loading C:\Users\Rayd\Music\Sing\Song1.pdf ...

com.sun.pdfview.PDFParseException: Unsupported function type 4.
at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)
at com.sun.pdfview.function.PDFFunction.getFunction(PDFFunction.java:168)
at com.sun.pdfview.colorspace.PDFColorSpace.getColorSpace(PDFColorSpace.java:176)
at com.sun.pdfview.PDFImage.createImage(PDFImage.java:232)
at com.sun.pdfview.PDFParser.doImage(PDFParser.java:947)
at com.sun.pdfview.PDFParser.doXObject(PDFParser.java:932)
at com.sun.pdfview.PDFParser.iterate(PDFParser.java:697)
at com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
at java.lang.Thread.run(Unknown Source)

omr.sheet.picture.PictureLoader.loadPDF(PictureLoader.java:319) -- INFO: Song1.pdf loaded image #1 (2448 x 3168)

omr.step.Stepping.scheduleScoreStepSet(Stepping.java:587) -- INFO: Song1 scheduling [SCALE, GRID, SPLIT, MEASURES, STICKS, SYMBOLS, PAGES, SCORE, EXPORT]
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SCALE

omr.sheet.ScaleBuilder.computeBeam(ScaleBuilder.java:293) -- INFO: No beam peak found, computing a default value
omr.sheet.ScaleBuilder.retrieveScale(ScaleBuilder.java:191) -- INFO: {Scale lineFrown0,0,3168) interlineFrown3167,3168,6336) beam:2218}
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: GRID

omr.grid.GridBuilder.buildInfo(GridBuilder.java:147) -- WARNING: Error in GridBuilder [java.lang.IndexOutOfBoundsException: Index: 0, Size: 0]
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at omr.grid.LinesRetriever.retrieveGlobalSlope(LinesRetriever.java:851)
at omr.grid.LinesRetriever.retrieveLines(LinesRetriever.java:410)
at omr.grid.GridBuilder.buildInfo(GridBuilder.java:119)
at omr.step.GridStep.doit(GridStep.java:60)
at omr.step.AbstractStep.doStep(AbstractStep.java:190)
at omr.step.Stepping.doOneSheetStep(Stepping.java:148)
at omr.step.Stepping.doSheetStepSet(Stepping.java:511)
at omr.step.Stepping.doScoreStepSet(Stepping.java:488)
at omr.step.Stepping.scheduleScoreStepSet(Stepping.java:622)
at omr.step.Stepping.processScore(Stepping.java:289)
at omr.Main$1.call(Main.java:169)
at omr.Main$1.call(Main.java:157)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at omr.grid.LinesRetriever.retrieveGlobalSlope(LinesRetriever.java:851)
at omr.grid.LinesRetriever.retrieveLines(LinesRetriever.java:410)
at omr.grid.GridBuilder.buildInfo(GridBuilder.java:119)
at omr.step.GridStep.doit(GridStep.java:60)
at omr.step.AbstractStep.doStep(AbstractStep.java:190)
at omr.step.Stepping.doOneSheetStep(Stepping.java:148)
at omr.step.Stepping.doSheetStepSet(Stepping.java:511)
at omr.step.Stepping.doScoreStepSet(Stepping.java:488)
at omr.step.Stepping.scheduleScoreStepSet(Stepping.java:622)
at omr.step.Stepping.processScore(Stepping.java:289)
at omr.Main$1.call(Main.java:169)
at omr.Main$1.call(Main.java:157)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SPLIT
omr.sheet.SystemsBuilder.reportResults(SystemsBuilder.java:367) -- INFO: no part found, no system found
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: MEASURES
omr.score.entity.Page.dumpMeasureCounts(Page.java:182) -- INFO: 0 raw measure: []
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: STICKS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SYMBOLS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: PAGES

omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: SYMBOLS
omr.step.Stepping.notifyMsg(Stepping.java:534) -- INFO: PAGES
omr.step.Stepping.processScore(Stepping.java:299) -- WARNING: Error in performing [SCALE, GRID, SPLIT, MEASURES, STICKS, SYMBOLS, PAGES, SCORE, EXPORT] [java.lang.NullPointerException]
java.lang.NullPointerException
at omr.score.PartConnection.connectScorePages(PartConnection.java:197)
at omr.score.ScoreReduction.reduce(ScoreReduction.java:111)
at omr.step.ScoreStep.doit(ScoreStep.java:114)
at omr.step.AbstractStep.doStep(AbstractStep.java:190)
at omr.step.ScoreStep.doStep(ScoreStep.java:86)
at omr.step.Stepping.doOneScoreStep(Stepping.java:413)
at omr.step.Stepping.scheduleScoreStepSet(Stepping.java:631)
at omr.step.Stepping.processScore(Stepping.java:289)
at omr.Main$1.call(Main.java:169)
at omr.Main$1.call(Main.java:157)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
omr.Main.doMain(Main.java:388) -- INFO: Checking 1 task(s)
omr.Main.doMain(Main.java:407) -- INFO: SHUTTING DOWN ...
 
Posted: March 26, 2012 07:07 by Hervé Bitteur
Hi rayseb,

I apologize for the delay.

The initial error is reported to be:
com.sun.pdfview.PDFParseException: Unsupported function type 4.
at com.sun.pdfview.function.FunctionType4.parse(FunctionType4.java:828)

This is located in the Sun code of PDFRenderer, the external application that Audiveris uses to read PDF files.
Sorry, I cannot really help you, because I'm not familiar enough with this PDFRenderer project.

What you could do:
- Dig into the PDFRenderer code yourself. Frown
- Submit the error to the PDFRenderer project.
- Provide your image input to Audiveris using some other format than PDF. Use PNG, JPG, TIFF, ... If I were you, I would try this option first!

Bye
/Hervé
 
Posted: April 03, 2012 12:45 by Hervé Bitteur
rayseb,

Could you give me a URL to the PDF file, so that I can test other PDF software with it? (this assumes your file is somewhere available on Internet)

Another and better possibility would be for you to file an issue (using "Issue Tracking" in the left column) and attach your PDF file to the issue report.

Thanks for your feedback
/Hervé
 
Posted: April 01, 2012 02:29 by convertyoutube
If you have problem while converting.Try to check the file format,check all the information maybe you had missed some of the information there.
showing 1 - 8 of 8
Replies: 7 - Last Post: April 03, 2012 12:45
by: Hervé Bitteur
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close