Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Aug 24, 2017 at 02:29 PM by M-H-O for the following reason:

The problem is not linked to Unity directly, problem comes from MapBox

avatar image
0
Question by M-H-O · Aug 20, 2017 at 10:45 PM · androidrotationcrashdevicelibunity.so

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

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bengles · Sep 07, 2017 at 10:43 AM 0
Share

Did you find a solution to this problem? I am having the exact same issue.

avatar image M-H-O bengles · Sep 07, 2017 at 10:55 AM 0
Share

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.

avatar image bengles M-H-O · Sep 07, 2017 at 11:03 AM 0
Share

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!

Show more comments

1 Reply

  • Sort: 
avatar image
0

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? ~

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image M-H-O · Aug 21, 2017 at 10:41 AM 0
Share

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 ! )

avatar image adrienPlayerium M-H-O · Aug 22, 2017 at 12:28 AM 0
Share

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.

avatar image M-H-O adrienPlayerium · Aug 22, 2017 at 10:34 PM 0
Share

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

Show more comments

Follow this Question

Answers Answers and Comments

163 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges