Search Issue Tracker

By Design

Votes

0

Found in

2019.2.9f1

2020.1

Issue ID

1195310

Regression

No

[Android] Application crash when calling UnloadUnusedAssets with an external library on the Android device

Mobile

-

To reproduce:
1. Open attached project
2. Build and run to android device
3. Press Load Video button ( and choose some video from the library)
4. Press Unload Unused Assets button

Actual result: The application crashes
Expected result: Application should not crash

Reproduced in: 2019.2.15f1; 2020.1.0a12
Can not check on 2017.4 and 2018.4 due to errors.

Tested and reproduced with:
VLNQA00099, Google Pixel XL (Pixel XL), Android 9, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530
VLNQA00277, Asus ROG Phone (ASUS_Z01QD), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630
VLNQA00121, Samsung Galaxy S9 (SM-G960F), Android 9, CPU: Exynos 9 Series 9810, GPU: Mali-G72

Note: crashes with Vulkan and OpenGles
Logcat attached
The external library is from here: https://github.com/tanersener/mobile-ffmpeg

  1. Resolution Note:

    In it's present state I consider this bug to be invalid. It does a lot, it's not clear what the native plugin does exactly and the crash seems to be caused by that plugin.
    For what I can see, the app sometimes closes without giving a reason, other times it crashes at random places. Looks like memory corruption. Since UnloadUnusedAsset does work without native plugin, I tend to blame the plugin (or it is used incorrectly).
    Additional note: when pressing unload button first time, 2 object are destroyed for me (message in logcat), next times it prints 0 destroyed object. Yet, after pressing unload multiple times and then loading video, next click on unload crashes the app, even though it does print 0 destroyed object. Does plugin create additional threads that modify anything?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.