Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix warning message on Mac about secure coding not enabled" #1240

Merged
merged 1 commit into from
May 20, 2024

Conversation

Phillipus
Copy link
Contributor

  • This can cause a crash to desktop

@Phillipus Phillipus requested a review from lshanmug as a code owner May 20, 2024 17:12
@Phillipus
Copy link
Contributor Author

Can someone please commit this revert ASAP. I just had a bad crash to desktop because of this.

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000019d4286a0

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [94693]

Application Specific Information:
Secure coding for state restoration requested after it was initialized without. NSApplicationDelegate was probably established too late.

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   AppKit                        	       0x19d4286a0 NSPersistentUIRequiresSecureCoding + 192
1   AppKit                        	       0x19c902d64 -[NSPersistentUIManager flushAllChanges] + 1072
2   AppKit                        	       0x19c902858 -[NSPersistentUIFlushScheduler _performFlush] + 144
3   AppKit                        	       0x19c91a104 __45-[NSPersistentUIFlushScheduler scheduleTimer]_block_invoke + 148
4   AppKit                        	       0x19d2d8c44 ___NSMainRunLoopPerformBlockInModes_block_invoke + 44
5   CoreFoundation                	       0x198f46070 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
6   CoreFoundation                	       0x198f45f84 __CFRunLoopDoBlocks + 356
7   CoreFoundation                	       0x198f45414 __CFRunLoopRun + 2440
8   CoreFoundation                	       0x198f44434 CFRunLoopRunSpecific + 608
9   HIToolbox                     	       0x1a36e819c RunCurrentEventLoopInMode + 292
10  HIToolbox                     	       0x1a36e7fd8 ReceiveNextEventCommon + 648
11  HIToolbox                     	       0x1a36e7d30 _BlockUntilNextEventMatchingListInModeWithFilter + 76
12  AppKit                        	       0x19c7a3d68 _DPSNextEvent + 660
13  AppKit                        	       0x19cf99808 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700

cc @lshanmug @iloveeclipse @merks

Copy link
Contributor

Test Results

   418 files  ±0     418 suites  ±0   8m 44s ⏱️ + 1m 6s
 4 121 tests ±0   4 113 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 313 runs  ±0  16 221 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit 1c8640e. ± Comparison against base commit 89055b4.

@Phillipus
Copy link
Contributor Author

FYI the original commit that this reverts was from me - 89055b4 - it seemed to be OK with initial testing. But I've just now had 3 crashes to desktop because of it. There must be a certain sequence of events that triggers it. So this revert really needs to be merged ASAP as it's quite a serious bug.

@lshanmug
Copy link
Member

Thanks @Phillipus for testing.
From the error looks like setting it in SWT is too late... may be it should be set in launcher.

@lshanmug lshanmug merged commit 5bacc2e into eclipse-platform:master May 20, 2024
9 of 11 checks passed
@Phillipus
Copy link
Contributor Author

Thanks @Phillipus for testing. From the error looks like setting it in SWT is too late... may be it should be set in launcher.

Yes, you're probably right. But if -noSplash option is used, then the launcher does not set it and SWT does set it.

Needs more investigation.

@Phillipus
Copy link
Contributor Author

@lshanmug Thanks for the fast response!

@laeubi
Copy link
Contributor

laeubi commented May 20, 2024

Applications can be launched without the launcher anyways...

@Phillipus Phillipus deleted the revert-1231 branch May 20, 2024 17:41
amartya4256 pushed a commit to amartya4256/eclipse.platform.swt that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants