Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Bugs

Reopen Game >> OpenGL Crash on iOS 5.1

Report bugs and issues

Reopen Game >> OpenGL Crash on iOS 5.1

Postby giggsy » 14 Mar 2012, 13:14

Hi!

Happend on iPhone 4s with iOS 5.1: if I close and reopen the app a few times, it crashes with the following dump:

Code: Select all
Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0x0000defe
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libGPUSupportMercury.dylib     0x34faf094 gpus_ReturnNotPermittedKillClient + 0
1   libGPUSupportMercury.dylib     0x34faf0ae gpus_KillClient + 18
2   libGPUSupportMercury.dylib     0x34faf5ba gpusSubmitDMABuffers + 130
3   IMGSGX543GLDriver              0x30829530 SubmitPacketsIfAny + 152
4   IMGSGX543GLDriver              0x30829654 glrFlushContextToken + 32
5   GLEngine                       0x35e88c4a gliPresentViewES + 210
6   OpenGLES                       0x34ecb6b4 -[EAGLContext presentRenderbuffer:] + 60
7   SocialGame                     0x00077fb4 -[S3DEngine_EAGLView drawView] (S3DEngine_EAGLView.m:332)
8   Foundation                     0x37ca4606 __NSFireTimer + 138
9   CoreFoundation                 0x37438a2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
10  CoreFoundation                 0x37438692 __CFRunLoopDoTimer + 358
11  CoreFoundation                 0x37437268 __CFRunLoopRun + 1200
12  CoreFoundation                 0x373ba49e CFRunLoopRunSpecific + 294
13  CoreFoundation                 0x373ba366 CFRunLoopRunInMode + 98
14  GraphicsServices               0x322c7432 GSEventRunModal + 130
15  UIKit                          0x33b3ee76 UIApplicationMain + 1074
16  SocialGame                     0x00076ec8 main (S3DEngine_iOS_Main.m:8)
17  SocialGame                     0x00076e80 start + 32



Using UAT 1.3.1
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby NiCoX » 14 Mar 2012, 13:30

Pffff... wondering if next iOS updates will continue to break existing apps or... :|
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby radek_ne » 14 Mar 2012, 13:32

It does not look too good :( This may be temporary problems. The same SDK 5.1 still has bugs. So it was with 5.0.
radek_ne
Expert Boarder
Expert Boarder
 
Posts: 116
Location: Poland

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby giggsy » 14 Mar 2012, 13:55

The good thing is, it only happens when reopening the app a few times, so for our case it's not thaaaat crucial ;)
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby Markuzzzz » 14 Mar 2012, 18:59

Can you build and install your game on your device. I upgraded to iOs 5.1 and get an clang error...
How did you work around this!?

Kind regards,

Markus
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby giggsy » 14 Mar 2012, 20:43

I'll ask our human build server tomorrow ... PM me or bump this thread in case I forget ;)
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby giggsy » 15 Mar 2012, 08:25

Markuzzzz, PM wrote:I upgraded so i could use iOS 5.1, but now my compiler has the following error: ...
Do I need a new UAT?? How did you get it to work on the device?
What to do? Did you get this error?


For us it works this way:
- We upgraded the iOS SDK + xCode and the device (4s) to iOS 5.1.
- We use UAT 1.3.1.
- Don't forget to clean your solution ;)
- Our project has some non "out of the box" settings, but can't tell which they are and if they are relevant.

The only thing that occurs is the multiple open -> resume bug.
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby bans3i » 20 Mar 2012, 09:29

Markuzzzz wrote:Can you build and install your game on your device. I upgraded to iOs 5.1 and get an clang error...
How did you work around this!?

Kind regards,

Markus


Set Optimization Level to O1. Higher Optimization Level crashes clang. :roll:
bans3i
Fresh Boarder
Fresh Boarder
 
Posts: 4

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby Markuzzzz » 20 Mar 2012, 09:43

I tried several things in the compiler settings. I have it working now for the iPhone, but the same settings lead to unresponsive game on the iPad...

I am going to wait until the new UAT. Several things seem to be broken. Should have waited with the upgrade :?
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby bans3i » 21 Mar 2012, 10:43

I've posted the problem in the official Apple Dev forums:

https://devforums.apple.com/thread/145594?tstart=0
bans3i
Fresh Boarder
Fresh Boarder
 
Posts: 4

Re: Reopen Game >> OpenGL Crash on iOS 5.1

Postby shikeyou » 03 Apr 2012, 16:14

bans3i wrote:Set Optimization Level to O1. Higher Optimization Level crashes clang. :roll:


I had the same issue with clang crashing when using updated iOS/Xcode, but your suggestion solved my problem. Thanks for the tip!
shikeyou
Junior Boarder
Junior Boarder
 
Posts: 25


Return to Bugs