Giter Site home page Giter Site logo

Comments (4)

myell0w avatar myell0w commented on August 26, 2024

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.

krasnyk avatar krasnyk commented on August 26, 2024

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.

myell0w avatar myell0w commented on August 26, 2024

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.

krasnyk avatar krasnyk commented on August 26, 2024

Could not reproduce in latest version (b296913)

from mtstatusbaroverlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.