- Home /
[UnityAppController renderingAPI] called before [UnityAppController selectRenderingApi]
After upgrade to unity 5 and my app crash on startup on iPod touch 5, but runs ok on iPhone 6. Log shows the following message:
Jun 13 17:53:07 jacky-iPod TestProject[24012] <Warning>: *** Assertion failure in -[MyAppController renderingAPI], /Users/workspace/COD_iOS/XCodeProject/Classes/UnityAppController+Rendering.mm:110
Jun 13 17:53:07 jacky-iPod TestProject[24012] <Warning>: Uncaught exception: NSInternalInconsistencyException: [UnityAppController renderingAPI] called before [UnityAppController selectRenderingApi]
(
0 CoreFoundation 0x2d9d7f63 <redacted> + 154
1 libobjc.A.dylib 0x37cec6af objc_exception_throw + 38
2 CoreFoundation 0x2d9d7e25 <redacted> + 0
3 Foundation 0x2e37ffe3 <redacted> + 90
4 TestProject 0x000147e9 TestProject + 59369
5 TestProject 0x00025d7f TestProject + 130431
6 TestProject 0x00eedda5 TestProject + 15629733
7 UIKit 0x301bb2ff <redacted> + 274
8 UIKit 0x301bad4f <redacted> + 1390
9 UIKit 0x301b5353 <redacted> + 714
10 UIKit 0x3015041f <redacted> + 3130
11 UIKit 0x3014f721 <redacted> + 72
12 TestProject 0x00eec79f TestProject + 15624095
13 UIKit 0x301b4b3d <redacted> + 664
14 GraphicsServices 0x325fc70d <redacted> + 608
15 GraphicsServices 0x325fc2f7 <redacted> + 34
16 CoreFoundation 0x2d9a29df <redacted> + 34
17 CoreFoundation 0x2d9a297b <redacted> + 346
18 CoreFoundation 0x2d9a114f <redacted> + 1398
19 CoreFoundation 0x2d90bc27 CFRunLoopRunSpecific + 522
20 CoreFoundation 0x2d90ba0b CFRunLoopRunInMode + 106
21 UIKit 0x301b3dd9 <redacted> + 760
22 UIKit 0x301af049 UIApplicationMain + 1136
23 TestProject 0x0000c0fb TestProject + 24827
24 libdyld.dylib 0x381f4ab7 <redacted> + 2
)
Jun 13 17:53:07 jacky-iPod TestProject[24012] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '[UnityAppController renderingAPI] called before [UnityAppController selectRenderingApi]'
Anybody knows what the problem is?
Comment
Answer by ofusion · Jun 16, 2016 at 02:04 PM
Finally, it is fixed by switch Graphics API from OpenGLES3 to OpenGLES2
Your answer
Follow this Question
Related Questions
iOS Memory Handling Crash on Startup 0 Answers
IOS Crash during build on Mac for Unity 5.3.4 0 Answers
Unity 5.4.0f3 (64-bit) Crahed on startup! 2 Answers
Our Unity game crash random in iOS with Unity 5.3.5p7 0 Answers
Unity 5.0.1 ios app crashes on load 4 Answers