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>
Anonymous
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:
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. Iflog/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.log/file/console
was true above, run it from a terminal."-------------------- 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.
I found some information about the file preferences.plist on macOS: there it is not called preferences.plist, but
org.opensong.opensong.plist
instead.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.
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).