AssistoLab / KVNProgress

KVNProgress is a fully customizable progress HUD that can be full screen or not.
MIT License
1.24k stars 202 forks source link

even import only (from pods) crashes OpenGL view #88

Closed mattem86 closed 7 years ago

mattem86 commented 8 years ago

I have a OpenGL ES 2.0 view, which I wanted to overlay with the KVNProgress. Every single time, I opened the GLView twice, the app crashes with _gpusReturnGuiltyForHardwareRestart ... Even if only imported the KVNProgress module via CocoaPods and no showing of the KVNProgress itself...

kevin-hirsch commented 8 years ago

Hello @mattem86, thanks for using this library!

Are you sure this crash is from KVNProgress itself? Do the crash disappear when you remove the KVNProgress import?

mattem86 commented 8 years ago

Yep, the crash disappears, if I do not import KVNProgress within the ViewController which contains the GLView. I didn't believe that to, so I double-checked :) But I will try it once again tomorrow...

kevin-hirsch commented 8 years ago

So the view of your view controller is a GLView? And if you import KVNProgress somewhere else, does that crash too? Last but not least, do you have a crash log? 🤗

mattem86 commented 8 years ago

Not exactly, the View in my View Controller has a View, which is holds an GLKView inside and is a GLKViewDelegate

kevin-hirsch commented 8 years ago

So if you remove the import KVNProgress statement, the app does not crash anymore? Which version of CocoaPods are you using? (pod --version)

mattem86 commented 8 years ago

Sorry, I was busy the last week ... I use pod 1.0.0 ... but, something changed in the meantime, the app crashes no more when I import KVNProgress on that particular ViewController... maybe some other pod were interfering? I have to try again...!

mattem86 commented 8 years ago

Ha! It is the Viewcontroller which I segue off from to reach the new Viewcontroller with the GLView. So, if I import (just import!) KVNProgress in my ViewController A and I segue off to my ViewController B (which contains my GLView), then the crash appears at the second time I segue. Weird.

mattem86 commented 7 years ago

Ok, seems to be a bug in the GLView Framework I was using ... I was trying again yesterday and everything went well, after updating the specific framework!