Skip to content

x/mobile: apps crash with malloc deadlock on Android #10469

Closed
@rakyll

Description

@rakyll

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions