Closed
Description
My application crashes without a stack trace after device rotation if it doesn't register for orientation changes in the AndroidManifest.xml. It is only reproducible if the current activity's orientation is set to a value such as android:screenOrientation="landscape"
in my case.
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.golang.todo.main"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="9" />
<application android:label="Drum machine" android:hasCode="false" android:debuggable="true">
<activity android:name="android.app.NativeActivity"
android:label="Main"
android:configChanges="keyboardHidden"
android:screenOrientation="landscape">
<meta-data android:name="android.app.lib_name" android:value="drummachine" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Update: Each Android apk that is built with gomobile crashes. It outputs a log with malloc deadlock. See #10469 (comment).