Cwtch Crashes on x64 Macs when creating/loading profiles. #542

Open
opened 2 weeks ago by sarah · 3 comments
sarah commented 2 weeks ago
Owner
`Crashed Thread:                1    io.flutter.ui

Exception Type:                EXC_CRASH (SIGABRT)
Exception Codes:              0x0000000000000000, 0x0000000000000000
Exception Note:                EXC_CORPSE_NOTIFY

Termination Reason:        DYLD, [0x4] Symbol missing


`Dyld Error Message:
    Symbol not found: ____chkstk_darwin
    Referenced from: /Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../libCwtch.x64.dylib (which was built for Mac OS X 11.0)
    Expected in: /usr/lib/libSystem.B.dylib`


`Thread 1 Crashed:: io.flutter.ui
0      dyld                                                    	0x000000010d737256 __abort_with_payload + 10
1      dyld                                                    	0x000000010d736bc8 abort_with_payload_wrapper_internal + 89
2      dyld                                                    	0x000000010d736bf5 abort_with_payload + 9
3      dyld                                                    	0x000000010d70a482 dyld::halt(char const*) + 354
4      dyld                                                    	0x000000010d70a5a9 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 170
5      libdyld.dylib                                  	0x00007fff63613292 dyld_stub_binder + 282
6      ???                                                      	0x000000010885d000 git.openprivacy.ca/openprivacy/bine/torutil/ed25519/internal/edwards25519.base + 30720
7      libCwtch.x64.dylib                        	0x0000000108445269 sqlcipher_page_cipher + 313
8      libCwtch.x64.dylib                        	0x00000001084651f0 sqlite3Codec + 528
9      libCwtch.x64.dylib                        	0x0000000108478d04 pager_write_pagelist + 244
10    libCwtch.x64.dylib                        	0x0000000108450d7b sqlite3PagerCommitPhaseOne + 1307
11    libCwtch.x64.dylib                        	0x0000000108451173 sqlite3BtreeCommitPhaseOne + 147
12    libCwtch.x64.dylib                        	0x000000010847e3fd sqlite3VdbeHalt + 2973
13    libCwtch.x64.dylib                        	0x0000000108490db5 sqlite3VdbeExec + 59797
14    libCwtch.x64.dylib                        	0x0000000108453693 sqlite3_step + 675
15    libCwtch.x64.dylib                        	0x0000000108433c5d _cgo_02b66e184e94_Cfunc__sqlite3_step_row_internal + 45`    
`Crashed Thread:                1    io.flutter.ui Exception Type:                EXC_CRASH (SIGABRT) Exception Codes:              0x0000000000000000, 0x0000000000000000 Exception Note:                EXC_CORPSE_NOTIFY Termination Reason:        DYLD, [0x4] Symbol missing `Dyld Error Message: Symbol not found: ____chkstk_darwin Referenced from: /Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../libCwtch.x64.dylib (which was built for Mac OS X 11.0) Expected in: /usr/lib/libSystem.B.dylib` `Thread 1 Crashed:: io.flutter.ui 0      dyld                                                    0x000000010d737256 __abort_with_payload + 10 1      dyld                                                    0x000000010d736bc8 abort_with_payload_wrapper_internal + 89 2      dyld                                                    0x000000010d736bf5 abort_with_payload + 9 3      dyld                                                    0x000000010d70a482 dyld::halt(char const*) + 354 4      dyld                                                    0x000000010d70a5a9 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 170 5      libdyld.dylib                                  0x00007fff63613292 dyld_stub_binder + 282 6      ???                                                      0x000000010885d000 git.openprivacy.ca/openprivacy/bine/torutil/ed25519/internal/edwards25519.base + 30720 7      libCwtch.x64.dylib                        0x0000000108445269 sqlcipher_page_cipher + 313 8      libCwtch.x64.dylib                        0x00000001084651f0 sqlite3Codec + 528 9      libCwtch.x64.dylib                        0x0000000108478d04 pager_write_pagelist + 244 10    libCwtch.x64.dylib                        0x0000000108450d7b sqlite3PagerCommitPhaseOne + 1307 11    libCwtch.x64.dylib                        0x0000000108451173 sqlite3BtreeCommitPhaseOne + 147 12    libCwtch.x64.dylib                        0x000000010847e3fd sqlite3VdbeHalt + 2973 13    libCwtch.x64.dylib                        0x0000000108490db5 sqlite3VdbeExec + 59797 14    libCwtch.x64.dylib                        0x0000000108453693 sqlite3_step + 675 15    libCwtch.x64.dylib                        0x0000000108433c5d _cgo_02b66e184e94_Cfunc__sqlite3_step_row_internal + 45`
sarah added the
mac
label 2 weeks ago
sarah added this to the Cwtch Beta (In Progress) project 2 weeks ago

Thanks Sarah. When I get a chance in the next few days I'm going to run the combo update on that machine. I am getting some buggy stuff happening on it and it won't hurt to eliminate that as a factor in this issue. Unless some other early darwin folks weigh in with confirmation in the mean time.

Thanks Sarah. When I get a chance in the next few days I'm going to run the combo update on that machine. I am getting some buggy stuff happening on it and it won't hurt to eliminate that as a factor in this issue. Unless some other early darwin folks weigh in with confirmation in the mean time.
Poster
Owner

Per CRCT: "it's running fine on 10.15.7 (Catalina) but not on 10.13.6 (High Sierra)"

Given the changes made between those two versions (including the splitting of system and data drives), it is looking more likely that this is an SDK issue.

High Sierra (10.13.X) is officially unsupported by Apple as of November, 2020 - which further points to this being an SDK difference - and likely one that we cannot resolve without unrealistic effort.

(That being said, maybe there is a nice --please-support-older-macs flag buried in xcode. Probably worth a small check)


That being said, we should sit down and come up with a support plan for Mac (and likely other operating systems) that outlines what versions we can support, and how we deal with OS updates.

We currently target Cwtch builds to macOS 11.0 (officially supported, but not the most recent). Currently macOS 12 is nearly a year old, and macOS 13 is in public beta. We should draw up a support chart and make sure we are planning infrastructure upgrades to match (and surface supported OS's on the website / handbook)

Per CRCT: "it's running fine on 10.15.7 (Catalina) but not on 10.13.6 (High Sierra)" Given the changes made between those two versions (including the splitting of system and data drives), it is looking more likely that this is an SDK issue. High Sierra (10.13.X) is officially unsupported by Apple as of November, 2020 - which further points to this being an SDK difference - and likely one that we cannot resolve without unrealistic effort. (That being said, maybe there is a nice `--please-support-older-macs` flag buried in xcode. Probably worth a small check) --- That being said, we should sit down and come up with a support plan for Mac (and likely other operating systems) that outlines what versions we can support, and how we deal with OS updates. We currently target Cwtch builds to macOS 11.0 (officially supported, but not the most recent). Currently macOS 12 is nearly a year old, and macOS 13 is in public beta. We should draw up a support chart and make sure we are planning infrastructure upgrades to match (and surface supported OS's on the website / handbook)

I had a feeling it might be a SDK issue :/ I'll hazard a guess that lots of devs are dealing with backporting issues like this one. Sigh...

Fingers crossed that there's something helpful in xcode but I'm not going to hold my breath.

I agree that a support chart as you suggest would be a good plan.

Otherwise, see my relpy on CRCT

and thanks!

I had a feeling it might be a SDK issue :/ I'll hazard a guess that lots of devs are dealing with backporting issues like this one. Sigh... Fingers crossed that there's something helpful in xcode but I'm not going to hold my breath. I agree that a support chart as you suggest would be a good plan. Otherwise, see my relpy on CRCT and thanks!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#542
Loading…
There is no content yet.