Topic: Android crashes when returning to map scene

Here's what happens, this only happens when running on the Android device, Unity Editor is fine...

1) Run application, launches into my map scene by default
2) Click a map marker which causes Application.LoadLevel of another scene
3) Going back to my map scene causes the app to crash to desktop with "App Stopped Working" error message

I'm using the example GUITexture scene as a base.

Here is the logcat:


08-19 18:56:08.393  3482  4337 D ActivityManager: The following uid has registered to recieve broadcast for proxy related updates 10110
08-19 18:56:16.123  3482 16174 W ActivityManager:   Force finishing activity com.Company.monstersar/com.unity3d.player.UnityPlayerActivity
08-19 18:56:16.223  3482  3547 I ActivityManager: Start proc 16178:com.samsung.android.sm/1000 for broadcast-3 com.samsung.android.sm/.common.SmartManagerReceiver
08-19 18:56:16.273  3482  6817 I ActivityManager: Process com.Company.monstersar (pid 15355)(adj 0) has died(95,1252)
08-19 18:56:16.283  3482  6817 D ActivityManager: isAutoRunBlockedApp:: com.Company.monstersar, Auto Run ON
08-19 18:56:16.303  3482  6817 D ActivityManager: mDVFSHelper.acquire()
08-19 18:56:16.423  3482  4104 D ActivityManager: post active user change for 0 fullscreen true isFloatingActivity() false isHomeActivity() true
08-19 18:56:16.563  3482  4423 I ActivityManager: Killing 15266:com.samsung.android.sm.devicesecurity/5012 (adj 15): DHA:empty #31
08-19 18:56:16.583  3482  4337 D ActivityManager: isAutoRunBlockedApp:: com.samsung.android.sm.devicesecurity, Auto Run ON
08-19 18:56:16.803  3482  3547 D ActivityManager: mDVFSHelper.release()

Is there something I'm forgetting to do before changing scene? Close the map instance or something? Or is this a bug?

Thanks

Re: Android crashes when returning to map scene

Hello.

Please specify the version of Unity Editor and Online Maps.
Another scene contains a map?

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Android crashes when returning to map scene

Unity 5.4.03 and updated the latest Online Maps from the asset store.

The other scene doesn't contain a map

Re: Android crashes when returning to map scene

I've found the problem, the issue was with unity WebCamTexture not with OnlineMaps. Stopping the texture before loading the scene fixed it. Thanks