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

Chrash under iOS 18 #32

Open
apcxiii opened this issue Sep 19, 2024 · 7 comments
Open

Chrash under iOS 18 #32

apcxiii opened this issue Sep 19, 2024 · 7 comments
Assignees
Labels

Comments

@apcxiii
Copy link

apcxiii commented Sep 19, 2024

Hello, We are having a trouble with last version of iOS (18) and AppSpector 1.4.13

The logs are the following:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Call must be made on main thread'
*** First throw call stack:
(0x18c17108c 0x1894732e4 0x18b54215c 0x18fa85fc4 0x18fa8607c 0x2134a9860 0x2134a9570 0x2134a9030 0x2134a8fcc 0x18ebc7bac 0x189461afc 0x189460f3c 0x189460edc 0x18eba6ce8 0x18eba6af8 0x18efe9b3c 0x18ab1fe44 0x18ab20f58 0x2134a9018 0x2134a8fcc 0x18e915f2c 0x189461afc 0x189460f3c 0x189460edc 0x18c14ab94 0x106179e8c 0x2134a9018 0x2134a8fcc 0x10555671c 0x10555e5e8 0x10555f360 0x10556c5f0 0x10556bc00 0x2134afc7c 0x2134ac488)
Call must be made on main thread
(
	0   CoreFoundation                      0x000000018c171098 47427277-EE15-3C17-AD68-6886B0380B5E + 540824
	1   libobjc.A.dylib                     0x00000001894732e4 objc_exception_throw + 88
	2   Foundation                          0x000000018b54215c 12E17A7A-B65F-35EE-82D7-CBC31004E223 + 8528220
	3   UIKitCore                           0x000000018fa85fc4 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 18669508
	4   UIKitCore                           0x000000018fa8607c 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 18669692
	5   libsystem_blocks.dylib              0x00000002134a9860 EE0373A8-D3B9-33ED-94DB-60202C36EBBE + 10336
	6   libsystem_blocks.dylib              0x00000002134a9570 EE0373A8-D3B9-33ED-94DB-60202C36EBBE + 9584
	7   libsystem_blocks.dylib              0x00000002134a9030 EE0373A8-D3B9-33ED-94DB-60202C36EBBE + 8240
	8   libsystem_blocks.dylib              0x00000002134a8fcc _Block_release + 256
	9   UIKitCore                           0x000000018ebc7bac 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 3210156
	10  libobjc.A.dylib                     0x0000000189461afc 1A127D44-47A3-3947-BC4D-9A51C4C4E157 + 23292
	11  libobjc.A.dylib                     0x0000000189460f3c objc_destructInstance + 80
	12  libobjc.A.dylib                     0x0000000189460edc _objc_rootDealloc + 80
	13  UIKitCore                           0x000000018eba6ce8 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 3075304
	14  UIKitCore                           0x000000018eba6af8 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 3074808
	15  UIKitCore                           0x000000018efe9b3c 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 7543612
	16  libswiftCore.dylib                  0x000000018ab1fe44 24EC482A-274C-32F2-AA6D-A809FABFDC58 + 4030020
	17  libswiftCore.dylib                  0x000000018ab20f58 24EC482A-274C-32F2-AA6D-A809FABFDC58 + 4034392
	18  libsystem_blocks.dylib              0x00000002134a9018 EE0373A8-D3B9-33ED-94DB-60202C36EBBE + 8216
	19  libsystem_blocks.dylib              0x00000002134a8fcc _Block_release + 256
	20  UIKitCore                           0x000000018e915f2c 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 384812
	21  libobjc.A.dylib                     0x0000000189461afc 1A127D44-47A3-3947-BC4D-9A51C4C4E157 + 23292
	22  libobjc.A.dylib                     0x0000000189460f3c objc_destructInstance + 80
	23  libobjc.A.dylib                     0x0000000189460edc _objc_rootDealloc + 80
	24  CoreFoundation                      0x000000018c14ab94 47427277-EE15-3C17-AD68-6886B0380B5E + 383892
	25  AppSpectorSDK                       0x0000000106179e8c __destroy_helper_block_e8_32s40s48s56s64w + 32
	26  libsystem_blocks.dylib              0x00000002134a9018 EE0373A8-D3B9-33ED-94DB-60202C36EBBE + 8216
	27  libsystem_blocks.dylib              0x00000002134a8fcc _Block_release + 256
	28  libdispatch.dylib                   0x000000010555671c _dispatch_client_callout + 20
	29  libdispatch.dylib                   0x000000010555e5e8 _dispatch_lane_serial_drain + 828
	30  libdispatch.dylib                   0x000000010555f360 _dispatch_lane_invoke + 408
	31  libdispatch.dylib                   0x000000010556c5f0 _dispatch_root_queue_drain_deferred_wlh + 328
	32  libdispatch.dylib                   0x000000010556bc00 _dispatch_workloop_worker_thread + 580
	33  libsystem_pthread.dylib             0x00000002134afc7c _pthread_wqthread + 288
	34  libsystem_pthread.dylib             0x00000002134ac488 start_wqthread + 8
)
@LinusGeffarth
Copy link

LinusGeffarth commented Sep 24, 2024

I can confirm this issue. After removing the library, the app no longer crashes. Verified with multiple apps.

However, it might also be related to the newest Xcode version, rather than iOS itself: when opening the app on the iOS 18 simulator, it runs fine; only when clicking run in Xcode, the app crashes..

@deszip deszip added the bug label Sep 30, 2024
@deszip deszip self-assigned this Sep 30, 2024
@deszip
Copy link
Collaborator

deszip commented Sep 30, 2024

Hi, have you checked on the release version of Xcode? Trying to reproduce this, with no luck so far.

@LinusGeffarth
Copy link

Was not a beta version of neither Xcode nor iOS. Xcode 16.0 (16A242d) for me.

@deszip
Copy link
Collaborator

deszip commented Sep 30, 2024

A couple of questions to help catch it:

  • is it reproducible? Crashes each time or from time to time?
  • if you leave AppSpector SDK linked (installed via spm or whatever and imported) but remove the init code does it crash?

@LinusGeffarth
Copy link

Unfortunately, I've already removed AS so I can only tell what happen_ed_.

It did crash every time, but only when running via Xcode. (Launching the app on the phone/sim manually didn't cause a crash.)

I removed both at once so I can't answer your second question.

I will try to reinstall AS and see if it crashes again for the matter of helping you debug. I'll report back.

@deszip
Copy link
Collaborator

deszip commented Oct 1, 2024

Thanks a lot, will ping you here when we'll fix it.

@LinusGeffarth
Copy link

Tried to, but I can't reproduce either...seems to work fine for me now 🤷‍♂️ Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants