cgm616 / VolumeBar9

A jailbreak tweak to change the stock volume HUD
https://cgm616.me/repo
MIT License
15 stars 1 forks source link

Crashes springboard if volume button is pressed twice or more rapidly when app is opening #9

Closed cgm616 closed 8 years ago

cgm616 commented 8 years ago

This is a different bug from #7. That only crashes the apps, and can be fixed by checking if the status bar exists. This crashes the entire springboard, and has something to do with calling [vbar resetTimer] while the block from libobjcipc is still executing, or when the message is still being sent. I think.

Logs:

cgm616 commented 8 years ago

Looking at the logs, it consistently crashes on the asynchronous libobjcipc message send from the presentVolumeBarWithView: method. I have more logs on my device and they're all almost identical. I'm not sure what I can do to resolve this.

Currently Tweak.xm needs the reply synchronously to init the volumebar object. Maybe in a replyHandler block in an async verison of sending ipc I can add the reply info to the volumebar, but I'd need to make sure that nothing in the tweak directly needs it immediately.

cgm616 commented 8 years ago

Looking at it, the tweak needs that stuff pretty immediately. I still see no reason why it's crashing, only that it has something to do with waiting on the async call and calling resetTimer