Comments (4)
could you provide additional information (Crash Log, Setup, iOS version, ...), it doesn't crash if I copy your code into my sample project, it runs w/o problems.
Thanks!
from mtstatusbaroverlay.
Crashes for me at line 687 while trying to invoke [self.messageQueue removeLastObject]. The reason is:
*** -[NSMutableArray removeObjectAtIndex:]: index 0 beyond bounds for empty array.
When I don't have switched on "Stop on Objective-C exceptions" the above exception is caught and ignored by CoreAnimation.
The stack trace is as follows:
#0 0x01a5b5a8 in objc_exception_throw
#1 0x018ffadf in -[NSArrayM removeObjectAtIndex:]
#2 0x018fbbf7 in -[__NSArrayM removeLastObject]
#3 0x0011cf75 in __-[MTStatusBarOverlay showNextMessage]_block_invoke_4 at MTStatusBarOverlay.m:687
#4 0x0076b665 in -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
#5 0x0076b4f7 in -[UIViewAnimationState animationDidStop:finished:]
#6 0x011566cb in run_animation_callbacks
#7 0x01156589 in CA::timer_callback
#8 0x018e7fe3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
#9 0x018e9594 in __CFRunLoopDoTimer
#10 0x01845cc9 in __CFRunLoopRun
#11 0x01845240 in CFRunLoopRunSpecific
#12 0x01845161 in CFRunLoopRunInMode
#13 0x0211c268 in GSEventRunModal
#14 0x0211c32d in GSEventRun
#15 0x0074942e in UIApplicationMain
#16 0x000020ce in main at main.m:23
from mtstatusbaroverlay.
I turned "Stop on Objective-C exceptions" on and it still doens't crash, could you upload another sample project with the latest version of MTStatusBarOverlay where this happens? By the way, thanks for testing things out!
from mtstatusbaroverlay.
Could not reproduce in latest version (b296913)
from mtstatusbaroverlay.
Related Issues (20)
- iOS 6 Compatibility
- IsIPhoneEmulationMode macro broken
- Crashing on callDelegateWithNewMessage
- Disable Gesture
- MakeKeyWindow HOT 5
- Why is there no [super dealloc] in the dealloc method?
- Repeating done over and over on iPad. HOT 1
- iOS 7 status bar new behavior HOT 7
- Eliminate UIKit warning about root view controller
- duration during postMessage:duration: method fails
- Please update CocoaPod HOT 1
- iOS 7 Crash HOT 4
- Can not set background
- Can not show overlay if statusbar is hidden
- Infinite loop in [MTStatusBarOverlay rootViewController] HOT 1
- Overlay positioning incorrect in landscape mode -- iOS 8 HOT 7
- 8.3 problem HOT 4
- iOS 9 beta 4 problem (iPad) HOT 7
- iOS 9 Black Screen Issue HOT 8
- UI freezes in iOS 9 when message is displayed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtstatusbaroverlay.