- Home /
The problem is not linked to Unity directly, problem comes from MapBox
App on Android Device crashes after multiple rotating touch gestures
Hello Everyone,
I'm on a problem that I can't solve right now after many researches, here is what I got as issue :
I'm trying to make a geolocation app that uses a 3D map [ with Mapbox ]. Everything is doing fine on the Unity Editor. I implemented the Rotation movement with the Touch Inputs and I needed to try it on my Huawei Nova Android Phone. So I decided to Build & Run [ before finding out that Unity Remote 5 could do the job ] and tried it on my Device. But after 10 times rotating , my app crashed.
I couldn't find a easy way to get a Exception Log without using ADB Logcat, and that's what I got : [ I typed in Terminal : ./adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG ]
08-18 14:59:31.534 28201 28201 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-18 14:59:31.535 28201 28201 F DEBUG : Build fingerprint: 'HUAWEI/CAN-L01/HWCAN:7.0/HUAWEICAN-L01/C02B331:user/release-keys'
08-18 14:59:31.535 28201 28201 F DEBUG : Revision: '0'
08-18 14:59:31.535 28201 28201 F DEBUG : ABI: 'arm'
08-18 14:59:31.535 28201 28201 F DEBUG : pid: 28069, tid: 28104, name: Worker Thread >>> io.chillpills.juicy <<<
08-18 14:59:31.535 28201 28201 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbd696000
08-18 14:59:31.535 28201 28201 F DEBUG : r0 c71f0040 r1 c71f0020 r2 c71f0058 r3 bd696000
08-18 14:59:31.535 28201 28201 F DEBUG : r4 00000020 r5 00000002 r6 0000000c r7 00000020
08-18 14:59:31.535 28201 28201 F DEBUG : r8 bd696000 r9 00000001 sl 00000000 fp 00000000
08-18 14:59:31.535 28201 28201 F DEBUG : ip d1d7f5f0 sp d1d7f550 lr d67f29f4 pc d7327714 cpsr 60000010
08-18 14:59:31.544 28201 28201 F DEBUG :
08-18 14:59:31.544 28201 28201 F DEBUG : backtrace:
08-18 14:59:31.544 28201 28201 F DEBUG : #00 pc 0104f714 /data/app/io.chillpills.juicy-1/lib/arm/libunity.so
Not understanding a word of that message, I decided to use Addr2Line with the help of NDK. I finally got a message that, unfortunately, didn't help me more but I knew that "0104f714" what the alloc address that I needed :
[ I typed in Terminal : [ADDRESS-TO-THE-NDK-FOLDER-USED-IN-UNITY]/.../arm-linux-androideabi-addr2line -Cfe /Applications/Unity/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Development/Libs/armeabi-v7a/libunity.so 0104f714 ]
TransformVertices_Strided_XYZN_2_Loop
??:?
I actually use IL2CPP as scripting backend and I understand it should be a problem in the Unity Library. But I really can't find out what I did wrong here. And I don't know if I'm giving enough informations. But this is everything I got.
I thank you for your answers
Did you find a solution to this problem? I am having the exact same issue.
Are you having the problem with $$anonymous$$apbox too ? I finally succeeded to not have that problem again by using the new version of $$anonymous$$apbox and recreate my Scene correctly.
If your problem doesn't come from $$anonymous$$apbox, I, unfortunately, can't help you.
Yes, it seems like my problem is co$$anonymous$$g from $$anonymous$$apbox. I just installed the latest version but the problem still persists. However, I only have the issue now on iOS, and not on Android. I might try to rebuild the scene from scratch and see if that helps. I have a feeling it has something to do with the CameraBoundTileProvider since it was working on iOS while I was running a RangeTileProvider. Any thoughts on that?
Anyways, thanks for your quick reply!
Answer by adrienPlayerium · Aug 21, 2017 at 12:29 AM
@M-H-O It is a segmentation error, usually from plugin function calls. Check that the input of TransformVertices_Strided_XYZN_2_LOOP is correct. They might not catch null ptr exceptions or out of bounds variables. It is annoying to debug those because it makes editor crash right? ~
The problem is, that it only crashes on my Android device, there is no problems with my editor. So I imagine it is a problem with my movements functions that are only made for my android device. By the way, how can I check if the input of TransformVertices_Strided_XYZN_2_LOOP is correct ? I don't even know where it is called.
( Thanks for you answer ! )
Use your device and stream the logcat from android studio monitor, until it crashes, it should tell you the call stack. If you want you can past it here, we can have a look at it. Otherwise look at the code you probably got a call somewhere through the library. Yes likely to be related to your device movements~$$anonymous$$aybe NaN values or something like that.
Unfortunately, I always get the same error and I can't translate it in a language I understand :
08-23 00:29:41.153: A/DEBUG(28479):
pid: 28268, tid: 28284, name: Unity$$anonymous$$ain >>> io.chillpills.juicy <<<
08-23 00:29:41.165: A/DEBUG(28479):
#00 pc 0104cdf4 /data/app/io.chillpills.juicy-2/lib/arm/libunity.so
and the address 0104cdf4 returns this :
TransformVertices_Strided_XYZN_2_Loop
??:?
I don't know how to solve that
Follow this Question
Related Questions
Random android crash on startup 2 Answers
Game Always Crashes On Some Android Devices 0 Answers
Crash on specific Android Device 0 Answers
Android crash when using www load/unload frequently 0 Answers
Unity 3d Network dies on Android 0 Answers