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 /
avatar image
0
Question by rick0 · Dec 03, 2016 at 10:38 PM · androidcrashpluginandroid-manifestsignal11

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]











Comment
Add comment
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

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

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


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