A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Android' started by ercion, Sep 23, 2017.
@kalamtech glad it helped you out.
I faced this issue again.
In this case was because of the rewarded and close callback from the Admob SDK.
Admob SDK callbacks might get called from another thread if Multithreaded Rendering is Active on PlayerSettings.
If you order your UI or something graphic related from a thread that isnt the main thread it will crash.
So, if you modify any Graphic from an Admob Callback you might get this error.
Of course it can happen for other reasons. But in my case was because of a miss-use of these Callbacks.
A. Disable Multithreaded Rendering as stated in another response
B. Instead of calling the UI from the Callback, start a Coroutine, wait one frame ( "yield return null") then call the UI. Coroutine will the switch to the main thread.
I have tested both, and both works. (In my case).
Hope it helps.
I got a similar crash every time I launched my app.
Caused by java.lang.Error
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000071f1f99ff8
I tried clearing the app cache an then data, the app now launches properly.
I had the same problem and I think I've figured out a way of solving it in my case:
Usually when we download a Unity Editor we also end up using the SDK, NDK and JDK that are installed through the Unity Hub via 'Add Modules'.
I have come to realise during my time dealing with hours and hours of problems ranging from this current issue to 'Strip Engine Code' not working and AdSize.SmartBanner chucking an error and crashing the app during launch, these problems are coming from the NDK and SDK that are installed via Unity Editor 'Add Modules'.
Yes, I am saying that Unity provides buggy NDK and SDK package installs that lead to build errors and even issues inside the Google Play Console running tests which can lead to a native crash such as the signal 11 (SIGSEGV).
How I solved the problem?
I simply downloaded the SDK and NDK directly from their original source and override the SDK and NDK in which Unity would use if you were to download it from there. So go to Edit > Preferences > External Tools and replace the SDK and NDK with the ones you manually had to download.
Hopefully this helps some of you.
This solution worked for me on Unity 2019.1.9f1 while building IL2CPP and gettings the "signal 11 (SIGSEGV)" error in ADB logcat.
I just cleared the apps data and cache (which made little sense, as it was recently reinstalled, but apparently that does not clear the data) in the app settings, and then the app began working just fine! Thanks for the solution!
Damn, thank you SO MUCH!
I can't believe reinstalling does not clear the data.
I wanted to follow up here and mention a more permanent fix.
If your app is crashing after an update of the unity editor, and requires you to delete app cache and data before the app will launch - the solution is to create an android manifest (or edit an existing one) like this:
<?xml version="1.0" encoding="utf-8"?>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
The important lines are android:allowBackup="false" and android:fullBackupContent="false". I assumed this would prevent playerprefs from carrying over to the new version - but it does still keep playerprefs. This prevents the crash on startup without the user needing to clear app data or cache!
The "AndroidManifest.xml" file will need to be inside the "Plugins" folder of your project!