Xojo hard crash when building app with IDE Communicator Script

I had to work on some entitlements issue in my build process. Since then Xojo does the occasional hard crash when building my apps. There is a helper app, an uninstaller, an installer and the main app. Xojo crashes during building of the main app.

The crash log information is always the same:

Time Awake Since Boot: 2400 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x006f0078002e0074 → 0x00000078002e0074 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x006f0078002e0074

VM Region Info: 0x78002e0074 is not in any region. Bytes after previous region: 34362753141 Bytes before following region: 105037717176204
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
commpage (reserved) 1000000000-7000000000 [384.0G] —/— SM=NUL reserved VM address space (unallocated)
—> GAP OF 0x5f9000000000 BYTES
MALLOC_NANO 600000000000-600020000000 [512.0M] rw-/rwx SM=PRV

Kernel Triage:
CL - (arg = 0x0) cluster_pagein past EOF
APFS - (arg = 0x3b12001600200040) cluster_pagein() failed
VM - (arg = 0x1900000016) Filesystem pagein returned an error in vnode_pagein
VM - (arg = 0x0) Page has error bit set
CL - (arg = 0x0) cluster_pagein past EOF

…

Application.DoEvents%%oi8 + 16
28 Xojo 0x101d0e35c ProgressWindow.ProgressWindow.ShowProgress%%o<ProgressWindow.ProgressWindow>sf8 + 3272
29 Xojo 0x102444ed8 RBBF.ReadFile%b%ooo&s + 1652
30 Xojo 0x1021c2d74 Document.LoadFromFile%b%oobobs + 21680

Unfortunately, the main app has quite the zoo of external build scripts:

So I had the idea to log the execution of each script to the Console. There I see that the last script “LiteScript” is done.

Does anyone have an idea what I else I can do except making the scripts internal?

Xojo 2024r1 on macOS Big Sur and Sequoia.

Assuming this line is correct (it may not be with an offset of 1652), that’s code that reads a file in the RealBasicBinaryFile class, which is responsible for reading and writing binary projects.

I suspect, based on the crash report, that the problem is actually the SaveAgain script and the fact that Xojo is running it under a DoEvents loop for the progress window.

Have you tried disabling that?

Also, what code do you have in that script?

2 Likes

Also, in the crash log, are there lines 1-27?

The script only saves the project:

DoCommand "SaveFile"

This is the only internal script. Aren’t all xojo scripts just text files?

But I’ll run the build process with this script disabled.

Here is the full crash thread:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x19e621808 objc_msgSend + 8
1 libdispatch.dylib 0x19e87385c _dispatch_client_callout + 16
2 libdispatch.dylib 0x19e85e5e0 _dispatch_continuation_pop + 596
3 libdispatch.dylib 0x19e871620 _dispatch_source_latch_and_call + 396
4 libdispatch.dylib 0x19e8702f8 _dispatch_source_invoke + 844
5 libdispatch.dylib 0x19e890a50 _dispatch_main_queue_drain.cold.5 + 592
6 libdispatch.dylib 0x19e868db0 _dispatch_main_queue_drain + 180
7 libdispatch.dylib 0x19e868cec _dispatch_main_queue_callback_4CF + 44
8 CoreFoundation 0x19eb3aeb4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
9 CoreFoundation 0x19eafbbac __CFRunLoopRun + 1980
10 CoreFoundation 0x19eafad68 CFRunLoopRunSpecific + 572
11 HIToolbox 0x1aa2ab27c RunCurrentEventLoopInMode + 324
12 HIToolbox 0x1aa2ae4e8 ReceiveNextEventCommon + 676
13 HIToolbox 0x1aa439484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
14 AppKit 0x1a274dab4 _DPSNextEvent + 684
15 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
16 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
17 XojoFramework 0x10e819350 CocoaProcessOneEvent(bool) + 196
18 XojoFramework 0x10e9a5a8c ModalEvents(unsigned char) + 76
19 XojoFramework 0x10e8a8d44 RuntimeDoEvents + 24
20 Xojo 0x1002d9714 Application.DoEvents%%oi8 + 16
21 Xojo 0x10c6c3618 BuildProgressWindow.BuildProgressWindow.SetDetail%%o<BuildProgressWindow.BuildProgressWindow>s + 1300
22 Xojo 0x100d5469c GenericBuildEngine.DoUserInterfaceUpdate%%oA1o + 5656
23 Xojo 0x100d52950 GenericBuildEngine.AddUserInterfaceUpdate%%oo + 328
24 Xojo 0x100d57670 GenericBuildEngine.SetPassProgressData%%osi8 + 1720
25 Xojo 0x103b14938 BuildProcessThread.SetProgress%%oi8s + 516
26 Xojo 0x103bb6a74 BuildProcessStandardThread.Event_Build%o%ooo + 18740
27 Xojo 0x103af8e90 BuildProcessThread.DoBuild%o%ooo + 540
28 Xojo 0x10c6de1a0 CompileBuildPass.Run%%oo + 9456
29 Xojo 0x100d5c27c BuildEngine.RunProcess%%o + 9424
30 Xojo 0x100d59ca0 BuildEngine.Event_Run%%o + 48
31 Xojo 0x100d56bcc GenericBuildEngine.Run%%o + 4156
32 Xojo 0x100e7f21c Document.DoBuildApp%%ob + 224
33 Xojo 0x10a2cff40 ActionSet.Perform%v%o + 1320
34 Xojo 0x10a2ce0d8 RuleEngine.Evaluate%v%o + 1020
35 Xojo 0x10125d328 Document.HandleCommand%b%oo<Commands.Command> + 3831640
36 Xojo 0x100d0fb78 DocWindow.HandleCommand%b%oo<Commands.Command> + 9844
37 Xojo 0x104779c40 StudioMainWindow.StudioMainWindow.HandleCommand%b%o<StudioMainWindow.StudioMainWindow>o<Commands.Command> + 280084
38 Xojo 0x1015b0d6c Commands.Dispatch%%o<Commands.Command> + 9092
39 Xojo 0x1015b18b8 Commands.Dispatch%%s + 84
40 Xojo 0x10b400684 IDEScriptContext.DoCommand%%os + 64
41 Xojo 0x10b3f564c IDEScriptContext.BuildApp%s%oi8b + 64744
42 Xojo 0x10b3e5908 IDEScriptContext.BuildApp%s%oi8 + 84
43 ??? 0x11b8045c8 ???
44 RBScript.dylib 0x11e44a518 0x11d3a0000 + 17474840
45 Xojo 0x100422298 XojoScript.Run%%oo + 80
46 Xojo 0x1039a2b18 IDECommunicator.IDECommScript.Run%%o<IDECommunicator.IDECommScript> + 60
47 Xojo 0x1039a1d7c IDECommunicator.IDECommScript.CheckProAndRun%%o<IDECommunicator.IDECommScript> + 84
48 Xojo 0x103996b28 IDECommunicator.RunScript%%soi8 + 4004
49 Xojo 0x1039a7148 IDECommunicator.IDEIPCSocket.ProcessNextCommand%%o<IDECommunicator.IDEIPCSocket>o + 3576
50 XojoFramework 0x10e9adb74 0x10e734000 + 2595700
51 CoreFoundation 0x19eb15f24 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32
52 CoreFoundation 0x19eb15be4 __CFRunLoopDoTimer + 980
53 CoreFoundation 0x19eb15720 __CFRunLoopDoTimers + 332
54 CoreFoundation 0x19eafbb28 __CFRunLoopRun + 1848
55 CoreFoundation 0x19eafad68 CFRunLoopRunSpecific + 572
56 HIToolbox 0x1aa2ab27c RunCurrentEventLoopInMode + 324
57 HIToolbox 0x1aa2ae4e8 ReceiveNextEventCommon + 676
58 HIToolbox 0x1aa439484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
59 AppKit 0x1a274dab4 _DPSNextEvent + 684
60 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
61 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
62 XojoFramework 0x10e819350 CocoaProcessOneEvent(bool) + 196
63 XojoFramework 0x10e9a5a8c ModalEvents(unsigned char) + 76
64 XojoFramework 0x10e9bab44 RuntimeShowModalWithinWindow + 356
65 Xojo 0x10029e2fc Window.ShowModal%%o + 44
66 Xojo 0x1066953a8 TemplatesWindowNew.TemplatesWindowNew.Present%%o<TemplatesWindowNew.TemplatesWindowNew>oo + 292
67 Xojo 0x1005decd4 IDEApp.HandleCommand%b%oo<Commands.Command> + 19888
68 Xojo 0x1015b107c Commands.Dispatch%%o<Commands.Command> + 9876
69 Xojo 0x1015b18b8 Commands.Dispatch%%s + 84
70 Xojo 0x100589ca4 IDEApp.Event_NewDocument%%o + 600
71 XojoFramework 0x10e81841c 0x10e734000 + 934940
72 CoreFoundation 0x19eaf173c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 148
73 CoreFoundation 0x19eb80e38 ___CFXRegistrationPost_block_invoke + 92
74 CoreFoundation 0x19eb80d7c _CFXRegistrationPost + 436
75 CoreFoundation 0x19eac0b98 _CFXNotificationPost + 740
76 Foundation 0x19fd93680 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
77 AppKit 0x1a27560d8 -[NSApplication _postDidFinishNotification] + 284
78 AppKit 0x1a2755e88 -[NSApplication _sendFinishLaunchingNotification] + 172
79 AppKit 0x1a274de7c _DPSNextEvent + 1652
80 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
81 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
82 XojoFramework 0x10e81a23c 0x10e734000 + 942652
83 Xojo 0x1002d9cf0 Application._CallFunctionWithExceptionHandling%%op + 164
84 XojoFramework 0x10e9a59b4 CallFunctionWithExceptionHandling(void (*)()) + 180
85 XojoFramework 0x10e81a1d8 0x10e734000 + 942552
86 AppKit 0x1a2740c64 -[NSApplication run] + 480
87 XojoFramework 0x10e9a4128 RuntimeRun + 60
88 Xojo 0x10048cee4 REALbasic._RuntimeRun + 28
89 Xojo 0x10c7d30f8 _Main + 384
90 Xojo 0x10c7ad450 main + 20
91 dyld 0x19e672b4c start + 6000

Interesting. Well… that crash should be reproducible with just that save step then.

Yeah, this is really interesting… sigh. But the crash is not gone after setting “Applies to” to “None”.

Are you logging your “save” script?

Wait a sec, that line shouldnt be in there.

Is this build automation something that you run while you’re using the IDE or completely automatically where it launches the IDE, builds your app and then quits the IDE when it’s done?

No, haven’t added logging to the “save” script. I’ve now removed the script completely as well as the “Lite” script and Xojo still crashes.

I’m using the IDE Communicator app because I need to build 4 apps. But the IDE isn’t launched or quit. However, all 4 apps use Xojo scripts.

I’ve removed the important build scripts but Xojo still crashes. The crashes are slightly different:


Translated Report (Full Report Below)

Process: Xojo [47932]
Path: /Applications/Xojo/Xojo 2024r1.app/Contents/MacOS/Xojo
Identifier: com.xojo.xojo
Version: 24.1.0.62510 (24.1.0.3.62510)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2025-07-08 08:41:58.3653 +0200
OS Version: macOS 15.4 (24E247)
Report Version: 12
Anonymous UUID: AD0E17C4-56F5-D9DA-B323-5C0F432C4D48

Sleep/Wake UUID: 663E52DA-6E00-4CC3-82BF-41151933FFD1

Time Awake Since Boot: 840000 seconds
Time Since Wake: 862 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x746144206c616e72 → 0x000044206c616e72 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x746144206c616e72

VM Region Info: 0x44206c616e72 is not in any region. Bytes after previous region: 74425011629683 Bytes before following region: 30647068299662
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
commpage (reserved) 1000000000-7000000000 [384.0G] —/— SM=NUL reserved VM address space (unallocated)
—> GAP OF 0x5f9000000000 BYTES
MALLOC_NANO 600000000000-600020000000 [512.0M] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x19e621808 objc_msgSend + 8
1 libdispatch.dylib 0x19e87385c _dispatch_client_callout + 16
2 libdispatch.dylib 0x19e85e5e0 _dispatch_continuation_pop + 596
3 libdispatch.dylib 0x19e871620 _dispatch_source_latch_and_call + 396
4 libdispatch.dylib 0x19e8702f8 _dispatch_source_invoke + 844
5 libdispatch.dylib 0x19e890a50 _dispatch_main_queue_drain.cold.5 + 592
6 libdispatch.dylib 0x19e868db0 _dispatch_main_queue_drain + 180
7 libdispatch.dylib 0x19e868cec _dispatch_main_queue_callback_4CF + 44
8 CoreFoundation 0x19eb3aeb4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
9 CoreFoundation 0x19eafbbac __CFRunLoopRun + 1980
10 CoreFoundation 0x19eafad68 CFRunLoopRunSpecific + 572
11 HIToolbox 0x1aa2ab27c RunCurrentEventLoopInMode + 324
12 HIToolbox 0x1aa2ae4e8 ReceiveNextEventCommon + 676
13 HIToolbox 0x1aa439484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
14 AppKit 0x1a274dab4 _DPSNextEvent + 684
15 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
16 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
17 XojoFramework 0x10e819350 CocoaProcessOneEvent(bool) + 196
18 XojoFramework 0x10e9a5a8c ModalEvents(unsigned char) + 76
19 XojoFramework 0x10e8a8d44 RuntimeDoEvents + 24
20 Xojo 0x1002d9714 Application.DoEvents%%oi8 + 16
21 Xojo 0x10c6c3618 BuildProgressWindow.BuildProgressWindow.SetDetail%%o<BuildProgressWindow.BuildProgressWindow>s + 1300
22 Xojo 0x100d5469c GenericBuildEngine.DoUserInterfaceUpdate%%oA1o + 5656
23 Xojo 0x100d52950 GenericBuildEngine.AddUserInterfaceUpdate%%oo + 328
24 Xojo 0x100d57670 GenericBuildEngine.SetPassProgressData%%osi8 + 1720
25 Xojo 0x103b14938 BuildProcessThread.SetProgress%%oi8s + 516
26 Xojo 0x103bb6a74 BuildProcessStandardThread.Event_Build%o%ooo + 18740
27 Xojo 0x103af8e90 BuildProcessThread.DoBuild%o%ooo + 540
28 Xojo 0x10c6de1a0 CompileBuildPass.Run%%oo + 9456
29 Xojo 0x100d5c27c BuildEngine.RunProcess%%o + 9424
30 Xojo 0x100d59ca0 BuildEngine.Event_Run%%o + 48
31 Xojo 0x100d56bcc GenericBuildEngine.Run%%o + 4156
32 Xojo 0x100e7f21c Document.DoBuildApp%%ob + 224
33 Xojo 0x10a2cff40 ActionSet.Perform%v%o + 1320
34 Xojo 0x10a2ce0d8 RuleEngine.Evaluate%v%o + 1020
35 Xojo 0x10125d328 Document.HandleCommand%b%oo<Commands.Command> + 3831640
36 Xojo 0x100d0fb78 DocWindow.HandleCommand%b%oo<Commands.Command> + 9844
37 Xojo 0x104779c40 StudioMainWindow.StudioMainWindow.HandleCommand%b%o<StudioMainWindow.StudioMainWindow>o<Commands.Command> + 280084
38 Xojo 0x1015b0d6c Commands.Dispatch%%o<Commands.Command> + 9092
39 Xojo 0x1015b18b8 Commands.Dispatch%%s + 84
40 Xojo 0x10b400684 IDEScriptContext.DoCommand%%os + 64
41 Xojo 0x10b3f564c IDEScriptContext.BuildApp%s%oi8b + 64744
42 Xojo 0x10b3e5908 IDEScriptContext.BuildApp%s%oi8 + 84
43 ??? 0x11b8045c8 ???
44 RBScript.dylib 0x11e44a518 0x11d3a0000 + 17474840
45 Xojo 0x100422298 XojoScript.Run%%oo + 80
46 Xojo 0x1039a2b18 IDECommunicator.IDECommScript.Run%%o<IDECommunicator.IDECommScript> + 60
47 Xojo 0x1039a1d7c IDECommunicator.IDECommScript.CheckProAndRun%%o<IDECommunicator.IDECommScript> + 84
48 Xojo 0x103996b28 IDECommunicator.RunScript%%soi8 + 4004
49 Xojo 0x1039a7148 IDECommunicator.IDEIPCSocket.ProcessNextCommand%%o<IDECommunicator.IDEIPCSocket>o + 3576
50 XojoFramework 0x10e9adb74 0x10e734000 + 2595700
51 CoreFoundation 0x19eb15f24 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32
52 CoreFoundation 0x19eb15be4 __CFRunLoopDoTimer + 980
53 CoreFoundation 0x19eb15720 __CFRunLoopDoTimers + 332
54 CoreFoundation 0x19eafbb28 __CFRunLoopRun + 1848
55 CoreFoundation 0x19eafad68 CFRunLoopRunSpecific + 572
56 HIToolbox 0x1aa2ab27c RunCurrentEventLoopInMode + 324
57 HIToolbox 0x1aa2ae4e8 ReceiveNextEventCommon + 676
58 HIToolbox 0x1aa439484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
59 AppKit 0x1a274dab4 _DPSNextEvent + 684
60 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
61 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
62 XojoFramework 0x10e819350 CocoaProcessOneEvent(bool) + 196
63 XojoFramework 0x10e9a5a8c ModalEvents(unsigned char) + 76
64 XojoFramework 0x10e9bab44 RuntimeShowModalWithinWindow + 356
65 Xojo 0x10029e2fc Window.ShowModal%%o + 44
66 Xojo 0x1066953a8 TemplatesWindowNew.TemplatesWindowNew.Present%%o<TemplatesWindowNew.TemplatesWindowNew>oo + 292
67 Xojo 0x1005decd4 IDEApp.HandleCommand%b%oo<Commands.Command> + 19888
68 Xojo 0x1015b107c Commands.Dispatch%%o<Commands.Command> + 9876
69 Xojo 0x1015b18b8 Commands.Dispatch%%s + 84
70 Xojo 0x100589ca4 IDEApp.Event_NewDocument%%o + 600
71 XojoFramework 0x10e81841c 0x10e734000 + 934940
72 CoreFoundation 0x19eaf173c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 148
73 CoreFoundation 0x19eb80e38 ___CFXRegistrationPost_block_invoke + 92
74 CoreFoundation 0x19eb80d7c _CFXRegistrationPost + 436
75 CoreFoundation 0x19eac0b98 _CFXNotificationPost + 740
76 Foundation 0x19fd93680 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
77 AppKit 0x1a27560d8 -[NSApplication _postDidFinishNotification] + 284
78 AppKit 0x1a2755e88 -[NSApplication _sendFinishLaunchingNotification] + 172
79 AppKit 0x1a274de7c _DPSNextEvent + 1652
80 AppKit 0x1a30eacd4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
81 XojoFramework 0x10e81a1b4 0x10e734000 + 942516
82 XojoFramework 0x10e81a23c 0x10e734000 + 942652
83 Xojo 0x1002d9cf0 Application._CallFunctionWithExceptionHandling%%op + 164
84 XojoFramework 0x10e9a59b4 CallFunctionWithExceptionHandling(void (*)()) + 180
85 XojoFramework 0x10e81a1d8 0x10e734000 + 942552
86 AppKit 0x1a2740c64 -[NSApplication run] + 480
87 XojoFramework 0x10e9a4128 RuntimeRun + 60
88 Xojo 0x10048cee4 REALbasic._RuntimeRun + 28
89 Xojo 0x10c7d30f8 _Main + 384
90 Xojo 0x10c7ad450 main + 20
91 dyld 0x19e672b4c start + 6000

I’ve deleted the working copy and checked out everything again - again no change.

I’m using the IDE Communicator app because I need to build 4 apps. But the IDE isn’t launched or quit. However, all 4 apps use Xojo scripts.

So you’re running the Xojo IDE as usual, not even with the Environment Variable XOJO_AUTOMATION=True? (see Documentation: IDE Communicator — Xojo documentation)

Just thinking of the unexpected TemplatesWindowNew…

So what does your IDE Communicator Script look like?
I’d assume:

  • Load Project 1
  • Build
  • Close Project 1
  • …this is where the TemplatesWindowNew might pop up…
  • Load Project 2
  • Build
  • …

In all our build automations, we always

  • make sure the Xojo IDE is quit
  • launch Xojo IDE (with corresponding/needed Environment Variables such as XOJO_AUTOMATION=True)
  • load/build a project
  • Quit Xojo

Yes, this would take longer to build 4 projects when launching/quitting Xojo between each project… but it would be interesting to know if that makes a difference.
Maybe also just not closing the previously opened projects?

Or maybe try (just to test) to split up the IDE Communicator Script in 4 distinct ones. One for each project to be built. And in between (once one project has been built) manually close the Xojo IDE Windows (even a possible “New Templates Window”).

That’s just trying to see if the issue occurs if building 4 different projects one-after-another with the same Xojo IDE instance running (or if the Xojo IDE has a build issue when switching between projects and sometimes showing the “new project” dialog).
That would be my guess, that the issue is in that “uncommon” usage of having an IDE Communicator load/build/close multiple projects in a single script (and having the Xojo IDE in “normal mode”, not “build automation mode”).

I can’t say if that dialog is also hidden (not showing) when using the Environment Variable XOJO_AUTOMATION=True…

Interesting. I never knew about the environment method.

What exactly is the “New Templates Window”? The project chooser?

I’ll do some testing with building only one project.

The build script opens each project, builds and closes it with some twists. I first open the main project and check something. This has worked fine for 2 years or so.

But I have had problems with an important script in one of the apps not being run. I had a check inside the app with an error message. Then I noticed that the error isn’t being shown. So I added a check in the IDE Communicator script:

		'Check only NSUIElement value in Info.plist
		dim SchedulerPath as String = basePath + "code\ current/Builds\ -\ max\ scheduler/macOS\ Universal/"
		if MaxVersion = "0" then
    			SchedulerPath = SchedulerPath + "Mail\ Archiver\ X\ Scheduler.app"
		elseif MaxVersion = "1" then
    			SchedulerPath = SchedulerPath + "Mail\ Archiver\ X\ Pro\ Scheduler.app"
		elseif MaxVersion = "3" then
    			SchedulerPath = SchedulerPath + "Mail\ Archiver\ X\ Pro\ Admin\ Scheduler.app"
		end if
		theCommand = "/usr/bin/defaults read " + SchedulerPath + "/Contents/Info NSUIElement"
		theResult = doShellCommand(theCommand)
		If theResult.Trim <> "1" Then
    			theCommand = "osascript -e 'display dialog ""Scheduler not set to Background.""'"
    			theResult = DoShellCommand(theCommand)
    			return
		End If

Xojo also likes to crash after showing the dialog. I’ll take that out for testing to see if this makes a difference.

Did a lot of testing - again.

Build one project at a time: worked fine.
Build with Xojo project and not with app: crashed on uninstaller.
Take out plist check: crashed on uninstaller.
Reverted build app to an older version: crashed on installer.
Don’t open main project first for check: worked fine 2 times in a row.

Is this weird or not? I have this check in the IDE Communicator script for 2 years. Next I’ll try to close the main project after the check. And I’ll make a ticket.