Closed Bug 1614154 Opened 4 years ago Closed 4 years ago

GeckoView crashes with libc error on Android 10

Categories

(GeckoView :: General, defect)

72 Branch
Unspecified
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1598068

People

(Reporter: staleydyla.n, Unassigned)

Details

Attachments

(4 files, 1 obsolete file)

Attached file Relevant application files (obsolete) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Steps to reproduce:

Add GeckoView to a new Android Kotlin project targeting SDK version 29, and attempt to render it in the main activity.

I've attached a zip file containing my build.gradle, AndroidManifest.xml, activity_main.xml, and MainActivity.kt.

The app is running on a Samsung Galaxy S10e running Android 10.

Actual results:

The application crashes with the following log;

2020-02-07 15:49:19.705 1122-1122/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2020-02-07 15:49:19.707 1122-1122/? E/Zygote: accessInfo : 1
2020-02-07 15:49:19.717 1122-1122/? I/e.myapplicatio: Late-enabling -Xcheck:jni
2020-02-07 15:49:19.730 1122-1122/? E/e.myapplicatio: Unknown bits set in runtime_flags: 0x8000
2020-02-07 15:49:19.750 1122-1122/? D/ActivityThread: setConscryptValidator
2020-02-07 15:49:19.750 1122-1122/? D/ActivityThread: setConscryptValidator - put
2020-02-07 15:49:20.264 1122-1122/? I/MultiWindowDecorSupport: updateCaptionType >> DecorView@bf2b6c3[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
2020-02-07 15:49:20.264 1122-1122/? D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@bf2b6c3[]
2020-02-07 15:49:20.348 1122-1122/? W/e.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2020-02-07 15:49:20.350 1122-1122/? W/e.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2020-02-07 15:49:20.524 1122-1122/? D/GeckoThread: State changed to LAUNCHED
2020-02-07 15:49:20.525 1122-1287/? I/GeckoThread: preparing to run Gecko
2020-02-07 15:49:20.533 1122-1122/? D/GeckoRuntime: Lifecycle: onCreate
2020-02-07 15:49:20.533 1122-1287/? W/e.myapplicatio: 0xebadde09 skipped times: 0
2020-02-07 15:49:20.534 1122-1287/? D/GeckoThread: State changed to MOZGLUE_READY
2020-02-07 15:49:20.537 1122-1122/? W/e.myapplicatio: Accessing hidden field Landroid/widget/EdgeEffect;->mPaint:Landroid/graphics/Paint; (greylist-max-p, reflection, denied)
2020-02-07 15:49:20.554 1122-1287/? W/Settings: Setting animator_duration_scale has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
2020-02-07 15:49:20.558 1122-1287/? E/GeckoLibLoad: Load sqlite start
2020-02-07 15:49:20.572 1122-1122/? D/GeckoRuntime: Lifecycle: onStart
2020-02-07 15:49:20.576 1122-1287/? W/GeckoLinker: /data/app/com.example.myapplication-7RT_jaDz42z__Ce8_55y1w==/lib/arm64/libnss3.so: unhandled flags #8 not handled
2020-02-07 15:49:20.580 1122-1287/? E/GeckoLibLoad: Load sqlite done
2020-02-07 15:49:20.580 1122-1287/? E/GeckoLibLoad: Load nss start
2020-02-07 15:49:20.580 1122-1287/? E/GeckoLibLoad: Load nss done
2020-02-07 15:49:20.580 1122-1122/? D/GeckoRuntime: Lifecycle: onResume
2020-02-07 15:49:20.581 1122-1287/? W/GeckoLinker: /data/app/com.example.myapplication-7RT_jaDz42z__Ce8_55y1w==/lib/arm64/libxul.so: unhandled flags #8 not handled
2020-02-07 15:49:20.581 1122-1287/? W/GeckoLinker: /data/app/com.example.myapplication-7RT_jaDz42z__Ce8_55y1w==/lib/arm64/liblgpllibs.so: unhandled flags #8 not handled
2020-02-07 15:49:20.587 1122-1122/? D/GeckoNetworkManager: Incoming event start for state OffNoListeners -> OnNoListeners
2020-02-07 15:49:20.590 1122-1122/? D/GeckoNetworkManager: New network state: UP, WIFI, WIFI
2020-02-07 15:49:20.610 1122-1287/? E/GeckoLibLoad: Loaded libs in 29.432292ms total, 8ms(28ms) user, 16ms(27ms) system, 0(0) faults
2020-02-07 15:49:20.610 1122-1287/? D/GeckoThread: State changed to LIBS_READY
2020-02-07 15:49:20.610 1122-1287/? W/GeckoThread: zerdatime 129353096 - runGecko
2020-02-07 15:49:20.622 1122-1287/? D/GeckoProfile: Loading profile at: null name: default
2020-02-07 15:49:20.624 1122-1287/? D/GeckoProfile: Found profile dir: /data/user/0/com.example.myapplication/files/mozilla/dyj1c15y.default
2020-02-07 15:49:20.628 1122-1122/? D/ViewRootImpl@d66fae7[MainActivity]: setView = DecorView@bf2b6c3[MainActivity] TM=true MM=false
2020-02-07 15:49:20.639 1122-1122/? D/ViewRootImpl@d66fae7[MainActivity]: stopped(true) old=false
2020-02-07 15:49:20.647 1122-1122/? D/GeckoNetworkManager: Incoming event receivedUpdate for state OnNoListeners -> OnNoListeners
2020-02-07 15:49:20.650 1122-1122/? D/GeckoNetworkManager: New network state: UP, WIFI, WIFI
2020-02-07 15:49:20.680 1122-1122/? D/ViewRootImpl@d66fae7[MainActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] req=(0,0)8 dur=11 res=0x1 s={false 0} ch=false
2020-02-07 15:49:20.689 1122-1122/? D/ViewRootImpl@d66fae7[MainActivity]: Relayout returned: old=[0,0][1080,2280] new=[0,0][1080,2280] req=(0,0)8 dur=7 res=0x1 s={false 0} ch=false
2020-02-07 15:49:20.824 1122-1287/com.example.myapplication I/Gecko:DumpUtils: Fifo watcher disabled via pref.
2020-02-07 15:49:20.855 1122-1287/com.example.myapplication D/GeckoSysInfo: System memory: 7469MB.
2020-02-07 15:49:20.856 1122-1287/com.example.myapplication W/e.myapplicatio: Accessing hidden method Landroid/os/MessageQueue;->next()Landroid/os/Message; (greylist, JNI, allowed)
2020-02-07 15:49:20.856 1122-1287/com.example.myapplication W/e.myapplicatio: Accessing hidden field Landroid/os/MessageQueue;->mMessages:Landroid/os/Message; (greylist, JNI, allowed)
2020-02-07 15:49:20.857 1122-1287/com.example.myapplication W/e.myapplicatio: Accessing hidden field Ljava/lang/Boolean;->value:Z (greylist-max-p, JNI, denied)
2020-02-07 15:49:20.857 1122-1287/com.example.myapplication W/e.myapplicatio: Accessing hidden field Ljava/lang/Integer;->value:I (greylist-max-p, JNI, denied)
2020-02-07 15:49:20.857 1122-1287/com.example.myapplication W/e.myapplicatio: Accessing hidden field Ljava/lang/Double;->value:D (greylist-max-p, JNI, denied)
2020-02-07 15:49:20.858 1122-1287/com.example.myapplication D/GeckoThread: State changed to JNI_READY
2020-02-07 15:49:21.074 1122-1287/com.example.myapplication D/GeckoViewStartup: observe: app-startup
2020-02-07 15:49:21.086 1122-1287/com.example.myapplication I/Gecko: [1122, Main Thread] WARNING: failed to open shm: Permission denied: file /builds/worker/workspace/build/src/ipc/chromium/src/base/shared_memory_posix.cc, line 207
2020-02-07 15:49:21.086 1122-1287/com.example.myapplication W/e.myapplicatio: 0xebadde09 skipped times: 0
2020-02-07 15:49:21.087 1122-1287/com.example.myapplication A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 1287 (Gecko), pid 1122 (e.myapplication)
2020-02-07 15:49:21.338 1122-1122/com.example.myapplication D/GeckoRuntime: Lifecycle: onPause
2020-02-07 15:49:21.338 1122-1122/com.example.myapplication D/GeckoNetworkManager: Incoming event stop for state OnNoListeners -> OffNoListeners
2020-02-07 15:49:22.321 1122-1122/com.example.myapplication D/ViewRootImpl@d66fae7[MainActivity]: dispatchDetachedFromWindow
2020-02-07 15:49:22.331 1122-1122/com.example.myapplication D/InputTransport: Input channel destroyed: 'e0b3925', fd=66

Expected results:

GeckoView loads and renders about:buildconfig.

Attached file build.gradle
Attached file AndroidManifest.xml
Attached file activity_main.xml
Attached file MainActivity.kt
Attachment #9125294 - Attachment is obsolete: true

This issue also occurs in an Android 10 emulator, so it's not device specific.

This is SDK 29 breakage, which is being tracked in bug 1598068. Until that's fixed, you'll need to set your targetSdk < 29.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: