- Home /
Unity3D Android plugins and SIGSEGV
Hi all,
I am developing a Unity project that uses UTNotifications and a custom plugin.
Whenever I introduced the custom plugin is when the problem of these signal 11 SIGSEGV crashes started happening.
There is a button in the game that when pressed takes the user to an authorisation site in the device browser and then returns them to the app afterwards. The custom plugin is designed to let us pass back an authorisation code for use in OAuth 2.0. From print statements I can see that the code is executing to a point and then will crash.
I know that this plugin works in another game we created in which UTNotifications is not present, however it does not work on this new game and I wonder if it is a plugin conflict with UTNotifications. Perhaps it is something to do with the manifest files I have?
Does anybody know what my issue may be? I'd appreciate any help!
I've pasted my manifests and the error logs below.
Directory Structure
Assets > Plugins > Android
Contains:
UTNotifications
myplugin
AndroidManifest.xml
Assets > Plugins > Android > myplugin
Contains:
libs with the jar inside it
project.properties
AndroidManifest.xml
AndroidManifest.xml (Assets > Plugins > Android) (Seemingly automatically generated)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0" xmlns:amazon="http://schemas.amazon.com/apk/res/android">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true">
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
<!-- UTNotifications common -->
<receiver android:name="universal.tools.notifications.AlarmBroadcastReceiver" />
<service android:name="universal.tools.notifications.NotificationIntentService" />
<!-- Restore Scheduled Notifications On Reboot -->
<receiver android:name="universal.tools.notifications.ScheduledNotificationsRestorer">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Restore Scheduled Notifications On Reboot -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Android 4.4 Compatibility Mode -->
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="20" />
</manifest>
AndroidManifest.xml (Assets > Plugins > Android > myplugin)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.co.company.app">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="uk.co.company.app.MainActivityTest" android:label="@string/app_name" android:launchMode="singleTask" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="sensor">>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="companyapp" android:host="host" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Error Code:
12-02 12:19:35.965 17892 18095 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x50 in tid 18095 (UnityMain)
12-02 12:19:35.968 775 794 I ActivityManager: Displayed uk.co.company.app/.MainActivityTest: +111ms
12-02 12:19:36.071 202 202 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-02 12:19:36.071 202 202 F DEBUG : Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30X/3237893:user/release-keys'
12-02 12:19:36.071 202 202 F DEBUG : Revision: '11'
12-02 12:19:36.071 202 202 F DEBUG : ABI: 'arm'
12-02 12:19:36.071 202 202 F DEBUG : pid: 17892, tid: 18095, name: UnityMain >>> uk.co.company.app <<<
12-02 12:19:36.071 202 202 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50
12-02 12:19:36.093 202 202 F DEBUG : r0 00000000 r1 aef0ab50 r2 00000001 r3 00000000
12-02 12:19:36.093 202 202 F DEBUG : r4 00000001 r5 aef3d020 r6 00000000 r7 9ff336f8
12-02 12:19:36.093 202 202 F DEBUG : r8 b07cfd40 r9 9f660d00 sl 9ff337ec fp 9ff3346c
12-02 12:19:36.093 202 202 F DEBUG : ip 000046af sp 9ff33448 lr b393965c pc b39326f0 cpsr a00e0010
12-02 12:19:36.125 202 202 F DEBUG :
12-02 12:19:36.125 202 202 F DEBUG : backtrace:
12-02 12:19:36.126 202 202 F DEBUG : #00 pc 001ef6f0 /data/app/uk.co.company.app-1/lib/arm/libmono.so
12-02 12:19:36.126 202 202 F DEBUG : #01 pc 001f6658 /data/app/uk.co.company.app-1/lib/arm/libmono.so (mono_array_new+116)
12-02 12:19:36.126 202 202 F DEBUG : #02 pc 002cd964 /data/app/uk.co.company.app-1/lib/arm/libunity.so (_Z19scripting_array_newP9MonoClassjj+24)
12-02 12:19:36.126 202 202 F DEBUG : #03 pc 004c95b8 /data/app/uk.co.company.app-1/lib/arm/libunity.so (_ZN21AndroidDisplayManager6UpdateEv+184)
12-02 12:19:36.126 202 202 F DEBUG : #04 pc 004cd954 /data/app/uk.co.company.app-1/lib/arm/libunity.so (_Z15UnityPlayerLoopv+116)
12-02 12:19:36.126 202 202 F DEBUG : #05 pc 004d29e8 /data/app/uk.co.company.app-1/lib/arm/libunity.so (_Z12nativeRenderP7_JNIEnvP8_jobject+172)
12-02 12:19:36.126 202 202 F DEBUG : #06 pc 0104dc39 /data/app/uk.co.company.app-1/oat/arm/base.odex (offset 0x704000) (boolean com.unity3d.player.UnityPlayer.nativeRender()+76)
12-02 12:19:36.126 202 202 F DEBUG : #07 pc 0104adb9 /data/app/uk.co.company.app-1/oat/arm/base.odex (offset 0x704000) (boolean com.unity3d.player.UnityPlayer.a(com.unity3d.player.UnityPlayer)+60)
12-02 12:19:36.127 202 202 F DEBUG : #08 pc 01047de3 /data/app/uk.co.company.app-1/oat/arm/base.odex (offset 0x704000) (void com.unity3d.player.UnityPlayer$b.run()+574)
12-02 12:19:36.127 202 202 F DEBUG : #09 pc 000e6331 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
12-02 12:19:36.127 202 202 F DEBUG : #10 pc 004028a5 /system/lib/libart.so (art_quick_invoke_stub+188)
12-02 12:19:36.127 202 202 F DEBUG : #11 pc 00102774 [stack:18095]
Your answer
Follow this Question
Related Questions
App crashes on Android 7.11 2 Answers
Jenkins android build launcher:mergeReleaseResources FAILED 0 Answers
Why Do Android Devices Hate This Shader? 2 Answers
FileNotFoundException: Could not find file MyProject\Temp\StagingArea\AndroidManifest.xml 0 Answers
How to check if user has given camera or location permissions (android) 0 Answers