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
Crashes when dequeueNext #254
Comments
Whats the exception type? Whats the platform? What version of iOS? What does your SwiftMessages code look like? |
The exception type is : EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000030451cbd4 |
The I don't see how I can help with this unless you provide reproduction steps. |
If anyone can provide repro steps or send me a project that crashes, I’ll take a look. |
It’s a bit hard to reproduce this in a clean environment. I tried, but it didn’t crash. |
The interesting part is the sub-type of the crash: EXC_ARM_DA_ALIGN I don’t know why is this happening, my code is Swift. Check out this: http://www.splinter.com.au/what-do-do-with-excarmdaalign-on-an-iphone-ap/ And this: https://stackoverflow.com/questions/15925287/exc-arm-da-align-crash |
{"app_name":"Theory-iOS-Free","timestamp":"2018-11-24 23:41:42.77 +0200","app_version":"4.8","slice_uuid":"70a131e5-a628-334d-86ca-222d3c5ac893","adam_id":0,"build_version":"4.8.1","bundleID":"com.ybe.theory.free","share_with_app_devs":true,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.1 (16B92)","incident_id":"5B05C4CE-64ED-4383-9940-F2538FE81393","name":"Theory-iOS-Free"} Date/Time: 2018-11-24 23:41:42.5806 +0200 Exception Type: EXC_BAD_ACCESS (SIGBUS) Termination Signal: Bus error: 10 Thread 0 name: Dispatch queue: com.apple.main-thread |
Ok, I changed the position of my code (in my original project) and got the faulty stack trace of the SwiftMessages I'm attaching the output of "bugreport" command in lldb |
this is the crashing code:
This works:
This crashes:
See in lldb:
|
Well, Apparently there are several issues.
IT WORKS!!!! But then I restore my code to its original place -> it crashes again.. |
My best guess is your app is an a bad state for some reason it just happens to crash in SwiftMessages code. I don't think there's anything wrong with the lines that are crashing. You can send me your app source code directly and I'll take a look when I get time (I'm extremely busy at the moment), but I'm not going to be able to solve this for you in this forum. You might have luck on Stack Overflow. |
Looks like SwiftMessages is compiled wrong in my project. (Installed with Cocoa Pods)
I tried during a debugging session to change properties of Config, and it crashed
I believe it’s something in the project build settings
If I have a new input I’ll post it here
ב-25 בנוב׳ 2018, בשעה 18:14, Timothy Moose <notifications@github.com> כתב/ה:
… My best guess is your app is an a bad state for some reason it just happens to crash in SwiftMessages code. I don't think there's anything wrong with the lines that are crashing. You can send me your app source code directly and I'll take a look when I get time (I'm extremely busy at the moment), but I'm not going to be able to solve this for you in this forum. You might have luck on Stack Overflow.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Looks like I find the issue. My test project is Swift 4.2 also, that's why it's working |
Well I upgraded my project to Swift 4.2 and everything works just great!!! |
@g-bourachot Can you check if your app or any of its dependencies are Swift 4.1? |
Crashlytics is telling me we've got crashes on our app due to SwiftMessages.
Here is the stack :
Crashed: com.apple.main-thread
0 (Missing) 0x300920bd4 (Missing)
1 (Missing) 0x300920bd4 (Missing)
2 SwiftMessages 0x1009156c8 closure #1 in SwiftMessages.dequeueNext() (SwiftMessages.swift:547)
3 SwiftMessages 0x1009105f8 thunk for @escaping @callee_guaranteed () -> () ()
4 libdispatch.dylib 0x186dab6c8 _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x186dac484 _dispatch_client_callout + 16
6 libdispatch.dylib 0x186d589ec _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
7 CoreFoundation 0x1873021bc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
8 CoreFoundation 0x1872fd084 __CFRunLoopRun + 1964
9 CoreFoundation 0x1872fc5b8 CFRunLoopRunSpecific + 436
10 GraphicsServices 0x189570584 GSEventRunModal + 100
11 UIKitCore 0x1b4178bc8 UIApplicationMain + 212
12 snapSchool 0x100520814 main (AppDelegate.swift:25)
13 libdyld.dylib 0x186dbcb94 start + 4
I haven't reproduced the crash yet
XCode10, Swift 4.2, Branch : work/swift4.2
My code calling the lib :
The text was updated successfully, but these errors were encountered: