• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Tiger Rag" ChordPro file causes endless loop
#1
The attached ChordPro file causes an endless loop in MobileSheets so that I have to kill it via TaskManager.
While trying "Import Local File" MS hangs showing the "Import Settings" dialog, during a batch import the progress dialog shows "Importing File #185 - TigerRag.pro" and that's it.

Same behaviour on Win10 and Win11.
At first glance I cannot see anything wrong with the file, the ChordPro reference implementation renders it without problems.


Attached Files
.pro   TigerRag.pro (Size: 1.73 KB / Downloads: 1)
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de


Reply
#2
I tried to identify what causes the problem. Assuming there are some faulty characters I removed line by line from the file in the last post. Probably the syntax is OK and there are no faulty characters.

It showed that there's an issue because you try to keep the whole grid section on the same page. As soon as I remove enough lines, the import works within seconds as with other ChordPro files I used before. But there's a certain number of lines where the song is displayed correctly in portrait orientation but shows just a black screen in landscape orientation. This is affected by the screen size and the size of the grid font (Grid Size) that is specified in Default Text Display Settings. Reducing Grid Size fixes both the issue with the black screen and the endless loop issue of my previous post. Nevertheless MobileSheets should not freeze, never.
In my case e.g. Grid Size 18 works and creates the attached result, Grid Size 40 caused the reported issues.

Duplicating all the grid lines to make sure the song is bigger than one page and rendering it with the ChordPro program V 6.070.5 shows, that the reference implementation just inserts page breaks wherever it is appropriate, the same as in lyrics and chords, see TigerRag_twice.pdf


Attached Files Thumbnail(s)
   

.pdf   TigerRag_twice.pdf (Size: 379.96 KB / Downloads: 3)
.pro   TigerRag_Err2.pro (Size: 1.23 KB / Downloads: 0)
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de


Reply
#3
For a proposal how to solve this see https://www.zubersoft.com/mobilesheets/f...54266.html
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de


Reply
#4
It's not easy for my code to split a chord grid over multiple pages with how the chord grid parsing/processing is currently implemented (each line is not independent of the others). I'd rather not implement it that way, as it would require significant changes to the code. Instead, what I think I'm going to do is dynamically split apart grid sections if needed so that will insert a new {start_of_grid}/{end_of_grid} section with the remainder of the chord grid lines that couldn't fit on the current page. I'll have to do some testing, but I believe the end result will be the same if I do this.

Mike
Reply




Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2025 MyBB Group.