Hello,
I was getting too many crashes on ios but the dump files on ios did not help me, I have integrated crashlytics and do several successful trial of getting the crashes sourced from the lua code.
I have released the application with the hope that I would locate the bugs on my lua code. Till now I got 9 crashes with 4 different types but unfortunately they are all not from lua.
https://www.dropbox.com/s/aa7hj7dyyf5dw0p/Screenshot 2016-04-19 17.12.45.png?dl=0https://www.dropbox.com/s/s5qeijrgqy10fof/Screenshot 2016-04-19 17.19.42.png?dl=0https://www.dropbox.com/s/tsmsqe7ujpsnfec/Screenshot 2016-04-19 17.20.50.png?dl=0https://www.dropbox.com/s/2tswjnta9ftjrk1/Screenshot 2016-04-19 17.22.17.png?dl=0https://www.dropbox.com/s/jg5i17rnvy0xi3k/Screenshot 2016-04-19 17.23.14.png?dl=0All of them have crashed in common with KERN_INVALID_ADDRESS signal..
Thus I suspect from a memory leak. But I cannot go further,
My application using url calls frequently,
I am using Gideros Update 2015.10.
Any suggestion how to proceed?
Comments
http://giderosmobile.com/forum/discussion/6274/crash-on-ios-9-only#Item_9
Likes: uzubari
@john26 it seems these are Gideros related bugs.
Fixing these type of errors in new Gideros versions would be my preference over the new feature addition.
https://itunes.apple.com/en/developer/unal-zubari/id953453674
https://www.dropbox.com/s/diagkmpgifo39br/Screenshot 2016-04-25 16.38.09.png?dl=0
https://itunes.apple.com/en/developer/unal-zubari/id953453674
http://crashes.to/s/b826bb9f68f (This one occurs only on iPads, and the remaining memory is usually low)
http://crashes.to/s/97875a95379 ( This one occurs only on devices with ios8, %90 iPad, %10 iPhone)
http://crashes.to/s/21fed7eee7a (only at ios8 devices)
http://crashes.to/s/f66afa9bb97 (Seems to be Ads plugin related,)
Possible memory leak locations according to XCode memory profiling tool
https://www.dropbox.com/s/vhd6d64hq7natwa/Screenshot 2016-05-03 11.24.10.png?dl=0
I can share the exported memory profiling doc, if anyone interested.
The memory usage by the application goes around 130MB
https://itunes.apple.com/en/developer/unal-zubari/id953453674
While performing rendering
glrSGXRenderVertexArray + 1156
glDrawElements_ACC_ES2Exec + 382
glDrawElements + 38
GraphicsBase::draw(ShaderProgram*, VertexBuffer*) (graphicsbase.cpp:36)
Sprite::draw(Matrix4 const&, float, float, float, float) (sprite.cpp:230)
Application::renderScene(int) (application.cpp:336)
Maybe @john26 or @hgy29 would know better what is going on in there, but this could be the issue:
http://discuss.cocos2d-x.org/t/engine-crash-on-ios7/9129/6
About 2) and 3) they are definitely UrlLoader related. Something is nil when it is attempted to release it, or because of auto release.
4) It is Ads which crashes on app exit, again when trying to release if something is already release:
https://github.com/gideros/gideros/blob/master/plugins/ads/source/iOS/Plugins/Ads/AdsStateChangeListener.m#L24
All in all, my guess is, is it possible that you have auto release setting enabled (or what was it called ARC ?) on all Gideros libraries and plugins and thus you have this issue, because Gideros cleans its own mess and ARC attempts to clean it too?
If that is not it, then those are bugs in Gideros
Regarding autorelease , Not sure what it is,
I am using the exported iOS project,
And I am not adding autorelease, tags.
When I searched the project I have encountered with some autorelase tags but these are the defaults coming from an ios export over Gideros.
I have did some performance tests by disabling the ads, The memory usage is decreased by half. (i.e from 120 MB to 60MB)
https://itunes.apple.com/en/developer/unal-zubari/id953453674