Menu

#361 Unhandled Exception Erro

Macintosh
accepted
None
1
18 hours ago
2025-08-10
Anonymous
No

Error message and shut down at launch (see below).
Mac OS26 Beta 25A5327h on an M1 Macbook Air.

NilObjectException:
OpenSong v3.4.8 (1457).1457 Build date: 2021-06-01 17:08:20 macOS

Stacktrace:
RuntimeRaiseException
RaiseNilObjectException
App.Event_Activate%%o<app>
CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
___CFXRegistrationPost_block_invoke
_CFXRegistrationPost
_CFXNotificationPost
-[NSNotificationCenter postNotificationName:object:userInfo:]
-[NSApplication _handleActivatedEvent:]
-[NSApplication(NSEventRouting) sendEvent:]
XojoFramework$3184
Application._CallFunctionWithExceptionHandling%%o<application>p
_Z33CallFunctionWithExceptionHandlingPFvvE
XojoFramework$3184
-[NSApplication _handleEvent:]
-[NSApplication run]
RuntimeRun
REALbasic._RuntimeRun
_Main
main</application></app>

Discussion

  • SvA

    SvA - 6 days ago

    Hi,

    thanks for reporting.

    According to my understanding of our code, this error from this location in the code should not be possible.

    You could help us to figure out what is happening by doing the following:

    • locate the file preferences.plist that holds settings for OpenSong. According to the documentation this should be in /Users/UserName/Library/Preferences (which I find hard to believe, because the filename is so generic and the path is not application specific; maybe some mac user can help?). log/level should be 8, 9, or 10 (it defaults to 3, so you probably need to adjust this setting. If you do need to adjust it, please set it to 8), log/file/console should be true. If log/file/console= false, log/file should have a value that specifies a file. In this case, the output I am after will be written to that file. Please make adjustments to these settings as needed.
    • Run OpenSong. If log/file/console was true above, run it from a terminal.
    • You should get some output in the terminal window or in the file specified above. At the start there should be a line reading
      "-------------------- Begin Run ----------------------".
      If you do, please copy the lines and post it to this thread. Use the code tags (symbol </> in the toolbar above), if you past it into your reply, or create a text file and add it as an attachment. If you do not get that line, please report that fact.
      If your log is configured to be written to a file, the output may be appended to the file. So please search for the last occurrence of the Begin Run marker and copy from there.
      If the log contains any private or confidential information, please obfuscate that information before posting it.
     
  • SvA

    SvA - 6 days ago

    I found some information about the file preferences.plist on macOS: there it is not called preferences.plist, but org.opensong.opensong.plist instead.

     
  • Ed Palmer

    Ed Palmer - 4 days ago

    Interesting. The stack trace points to a routine (App.Activate) that has not had a reported issue before to the best of my knowledge. The error is a NilObjectException, usually caused by an internal object not being initialized. The code could use some additional error checking, but that would only help identify which object isn't initialized and not why it isn't initialized.

    I do not have a system running the macOS 26 beta to test; my two Apple Silicon Macs are production systems that need to stay on Sequoia (15.6) until the official release of 26. I will test a clean installation on Sequoia to see if I can reproduce it there.

    We typically do not officially support new macOS versions until they are formally released since we do not have the resources to test beta releases.

     
  • Ed Palmer

    Ed Palmer - 18 hours ago
    • status: open --> accepted
    • assigned_to: Ed Palmer
     
  • Ed Palmer

    Ed Palmer - 18 hours ago

    Issue is confirmed and reproducible on macOS 26.0 Beta (25A5346a) running in a Parallels VM.

    App.Activate is getting called before App.Open has completed. This means that on entry to App.Activate the first time, DebugWriter has not been initialized and is Nil, causing the NilObjectException.

    More research is needed to determine the best option to avoid the race condition.

    Until I can fix this and post a new build, OpenSong should not be run on macOS 26 (Tahoe).

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.