Just to give some feedback that may help other ppl, if you use custom features in your mobile renpy game and its crashing, try to isolate each custom function you added and discover each one is breaking the game. In my case it was Firestore (I use it to keep track of consumables that are account bound and not linked to a specific game run) and I solved it not calling firestore until all the game is loaded.FroGlenn wrote: ↑Tue Oct 16, 2018 5:13 pm First, I would like to thank you all again for creating this wonderful platform. My dream is to someday work as a fulltime developer, and Renpy was a great step for me. My game is getting a bit more downloads recently (got good spot in terms like 'super seducer' and whatnot lol) and I'm getting something like 1k downloads per day (my game is in portuguese, so I cant compete in the global market yet).
Well, with more players, I started to see some bugs. They are happening only in some scpecific phone devices, specially running Android 6.0. Its not all the devices, but some of them, like Galaxy Grand Prime Plus (grandppltedtv) - not the 5.0 version.
The errors seems to be related to the pymodules (libpymodules.so). I dont know if this is a problem with Renpy itself, because I temper a lot with it, adding lots of external resources (firestore, storage, facebook api and other libraries) to my game using Android Studio.
However, these problems started when I compiled the game with targetsdkversion 28. After the release of Renpy 7.1.0, I changed the target version back to 22 (because I knew android 23 changed a lot of things) and everything was fine. Two weeks ago I finally changed it to SDK 28 (the original sdk generated from renpy) and the problems started.
I know this is not a Renpy problem as I'm using external resources, but I would really love to get help, maybe some indication from you guys how I coud handle these errors.
I'm reading a lot since and found good chunk of info about python-for-android and other resources renpy uses. I upgraded/downgreaded Gradle, tried some other shenanigans but nothing seems to work.
Is there something I can do? Thank you.
I removed the initialization from OnCreate state and called it from the game using jnius. This way, I'm sure all the libraries that renpy needs are loaded before any custom resource. I need to do more testing, but I'm pretty sure the problem is solved now.