Menu

#497 Open song crashes when trying to print a song

V3.4
open
nobody
2
2023-12-21
2023-04-11
No

Just installed OpenSong v3.4.8 (1457)-Beta.
Open song crashes when trying to print a song(leadsheet)
and before this error appears:

OutOfBoundsException, error is 'Width/Height needs to be in the range 1-32767':
OpenSong v3.4.8 (1457).1457 Build date: 2021-06-01 17:08:57 Windows

Stacktrace:
Picture.Constructor%%o<picture>i4i4i4
LeadSheetReport.Generate%b%o<leadsheetreport>f8o<group2d>
MainWindow.MainWindow.ActionSongPrint%%o<mainwindow.mainwindow>
MainWindow.MainWindow.btn_song_print_Action%%o<mainwindow.mainwindow>o<sbutton>
Delegate.IM_Invoke%%o<sbutton>
AddHandler.Stub.26%%
SButton.Event_MouseUp%%o<sbutton>i4i4
Delegate.Invoke%%
Application._CallFunctionWithExceptionHandling%%o<application>p
REALbasic._RuntimeRun
_Main
main</application></sbutton></sbutton></sbutton></mainwindow.mainwindow></mainwindow.mainwindow></group2d></leadsheetreport></picture>

Discussion

  • SvA

    SvA - 2023-04-11

    The problem is cause by an invalid page setup or invalid or unexpected properties reported by windows for your selected (or default) printer.

    • Is this the first time you installed OpenSong? I am asking because an uninstall leaves behind configuration data in the hidden folder AppData\Roaming\OpenSong.
    • Did you get the page setup dialog the first time you tried to print?
    • Did the Print Preview window show, or did the crash happen before it could display?
    • What happens if you call the page setup dialog from the File menu?
    • Are the values on the Margins-tab in the Print Settings dialog sensible? Can you modify them using the Page Setup button on that tab?
    • What is your default printer? Try disabling the auto-select default printer on Window's Printer and Scanner setup page.
    • Try a different default printer and call Page Setup again from the printer settings page
    • Search for your issue in tickets and discussions on this website. You will find additional instructions that might help you sort out he problem.

    Changes have been made concerning this issue which should help avoid the crash. They will be included in the next release.

     
  • Anonymous

    Anonymous - 2023-04-11

    I also had older versions of OpenSong installed and used 2.1.2 .

    Now i have these versions uninstalled and now no crash occurs.
    But in the print preview i see why i did go back to an older version.
    The word-spacing in this version is too tight for some words. see attachment. But thats maybe another bug

     
  • Allian Mulder

    Allian Mulder - 2023-04-11

    Anonymous post was mine..

     
  • SvA

    SvA - 2023-04-11

    Yes, changes have been made regarding this. It should get much better. However I do not consider this to be solved. The printout is based on vector graphics. This provides the advantage that the quality of characters is better, printout is faster, printing to .pdf and .oxps yields smaller files, and text can be selected and copied. On the other hand there is still that spacing issue (to a smaller extent), because we cannot get the length of text strings as vector graphics and thus have to use the length of the same string rendered as a pixel image for spacing.
    Work is in progress to have a native pdf export. We might then switch to rendering the pages for print as pixel graphics to avoid these mismatches.

     
  • Anonymous

    Anonymous - 2023-12-21

    Hey. I have the same problem. New computer. Windows 11. Someone on my team said they couldn't print to PDFs because the program crashed and I thought it might be their computer was old. But now mine is brand new and while I had no issues in the previous laptop, with this version of OpenSong (3.4.8 Beta) it doesn't even show a preview. Just goes in to "Not Responding". Help, anyone? Is there a way to maybe install an older version and maybe the problem will go away?

     
  • SvA

    SvA - 2023-12-21

    Hi,

    Thank you for reporting. We would like to find the cause for this, so we can fix it. So far, we have no clue and need additional information from you. There are some things here you can try to get it working again. Please report back, what you tried and what effect it had.

    I cannot replicate the issue here. I will have to set up a Windows 11 machine for testing, but as you report, the issue is not only on Windows 11.

    Please make sure you have a printer installed and it is selected as the default printer. If you use Windows' auto-switching the default printer, please switch it off temporarily for testing.

    Please work through the items above, in my first reply.

    I think the issue is either related to your Windows setup, or some problem with the printer settings in OpenSong. You may first chek if deleting the file preferences.plist helps. It is located in AppData. Navigate there by entering shell:appdata\OpenSong into the address bar of windows explorer. Rename, move, or delete the file while OpenSong is not running. The file contains stuff OpenSong remembers between sessions, but not the configuration per se.

    Also check the Printer Settings in OpenSong. Make sure all configured fonts exist, font sizes, spacing, border thickness, page margins, and page dimensions all make sense. In case you can't open the dialog, or can't alter the values, delete, move, or rename the file PrintSettingswhich is located in the settings subfolder to OpenSong's Document folder as configured in General Settings. Note: you cannot edit the page dimensions and margins on that page in Windows. Use the Page Setup button instead.

     

Anonymous
Anonymous

Add attachments
Cancel