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

Crash #108

Closed
mn288 opened this issue Jun 12, 2017 · 7 comments · Fixed by #110
Closed

Crash #108

mn288 opened this issue Jun 12, 2017 · 7 comments · Fixed by #110

Comments

@mn288
Copy link

mn288 commented Jun 12, 2017

While on iPad simulator I received this crash:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSOperationInternal _start:]: something is trying to start the receiver simultaneously from more than one thread'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113438b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000112e9d141 objc_exception_throw + 48
2 CoreFoundation 0x00000001134a1625 +[NSException raise:format:] + 197
3 Foundation 0x00000001129a5599 -[_NSOperationInternal start:] + 277
4 Toaster 0x00000001109aefc4 TFC7Toaster5Toast5startfT_T + 132
5 Toaster 0x00000001109af2ac TFFC7Toaster5Toast5startFT_T_U_FT_T + 108
6 Toaster 0x00000001109af2f7 TTRXFo___XFdCb
+ 39
7 libdispatch.dylib 0x00000001144574a6 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000011448005c _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000011446140b _dispatch_main_queue_callback_4CF + 411
10 CoreFoundation 0x00000001133fd909 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
11 CoreFoundation 0x00000001133c3ae4 __CFRunLoopRun + 2164
12 CoreFoundation 0x00000001133c3016 CFRunLoopRunSpecific + 406
13 GraphicsServices 0x0000000115dc8a24 GSEventRunModal + 62
14 UIKit 0x0000000110a0b0d4 UIApplicationMain + 159
15 carpolo 0x000000010b4485b7 main + 55
16 libdyld.dylib 0x00000001144cc65d start + 1
17 ??? 0x0000000000000008 0x0 + 8
)
libc++abi.dylib: terminating with uncaught exception of type NSException

@devxoul
Copy link
Owner

devxoul commented Jun 12, 2017

@mn288, can you reproduce the bug?

@mn288
Copy link
Author

mn288 commented Jun 12, 2017

not really, its completely random, but at least I got this capture.
It has been driving me crazy.

This is what I can help you with:

I have callbacks from the server, I have a tabbar controller with 3 views, if I switch between them all, sometimes it crashes and sometimes it doesn't.

@devxoul
Copy link
Owner

devxoul commented Jun 12, 2017

@mn288, hmm. Was that on main thread?

@mn288
Copy link
Author

mn288 commented Jun 12, 2017

the Toast? I don't call it from main thread or anything, I call it from the view after creating an extension calling it like

self.view.displayToast("Some Message")

where displayToast is an extension of UIVIew as follows

extension UIView{
    
    
    func displayToast(_ message: String){

        ToastCenter.default.cancelAll()
        ToastView.appearance().cornerRadius = 5
        Toast(text: message).show()
     }
}

@devxoul
Copy link
Owner

devxoul commented Jun 12, 2017

@mn288, I think #110 could resolve this issue but I'm not 100% sure because I couldn't reproduce it. 🤔

@devxoul devxoul reopened this Jun 12, 2017
@devxoul devxoul closed this as completed Jun 12, 2017
@devxoul
Copy link
Owner

devxoul commented Jun 12, 2017

I just released 2.0.4. Please reopen this issue if this issue still occurs :)

@mn288
Copy link
Author

mn288 commented Jun 12, 2017

Trying it now. Thanks :) ill reopen this issue if the problem remains

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 a pull request may close this issue.

2 participants