Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Gallery app crashing from inside the camera app

  • /e/ version: e-1.0-alpha-q-20220405176199-stable
  • Device model(s): ~"FP3/FP3+" , GS290 , starlte
  • Device rooted: no

Summary

Gallery app crashing from inside the camera app

The problem

Steps to reproduce

  • Record a video for approximately 10 seconds
  • As soon as the recording is stopped, tap on the thumbnail of the recording

What is the current behavior?

  • Gallery app crashes

What is the expected correct behavior?

  • No crash should be observed

Technical informations

Relevant logs (adb logcat)

04-06 16:10:42.702 11747 11747 E AndroidRuntime: FATAL EXCEPTION: main
04-06 16:10:42.702 11747 11747 E AndroidRuntime: Process: com.android.gallery3d, PID: 11747
04-06 16:10:42.702 11747 11747 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.gallery3d/com.android.gallery3d.app.GalleryActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.android.gallery3d.data.Path.getPrefix()' on a null object reference
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.android.gallery3d.data.Path.getPrefix()' on a null object reference
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.gallery3d.data.DataManager.getDefaultSetOf(DataManager.java:286)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.gallery3d.app.GalleryActivity.startViewAction(GalleryActivity.java:455)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.gallery3d.app.GalleryActivity.initializeByIntent(GalleryActivity.java:286)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.gallery3d.app.GalleryActivity.init(GalleryActivity.java:137)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at com.android.gallery3d.app.GalleryActivity.onCreate(GalleryActivity.java:129)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7824)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7813)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
04-06 16:10:42.702 11747 11747 E AndroidRuntime: 	... 11 more
04-06 16:10:42.704  5606 16393 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
04-06 16:10:42.704  5606  6852 W ActivityTaskManager:   Force finishing activity com.android.gallery3d/.app.GalleryActivity
04-06 16:10:42.712  5606  5625 I ActivityManager: Showing crash dialog for package com.android.gallery3d u0
04-06 16:10:42.712  5606  5625 E system_server: Invalid ID 0x00000000.
04-06 16:10:42.716  5606 10251 I WindowManager: Screen frozen for +235ms due to Window{7a7e88f u0 StatusBar}
04-06 16:10:42.721  5606  5640 V DisplayPowerController: Brightness [64] reason changing to: 'manual', previous reason: 'override'.
04-06 16:10:42.730  5885  6027 I mali_egl: eglDestroySurface() in
04-06 16:10:42.730  5885  6027 I mali_winsys: delete_surface() [1440x168] return
04-06 16:10:42.730  5885  6027 I mali_egl: eglDestroySurface() out
04-06 16:10:42.730  4153  4189 E BufferQueueProducer: [NavigationBar0#0] disconnect: not connected (req=1)
04-06 16:10:42.730  5885  6027 W libEGL  : EGLNativeWindowType 0x70c0ced210 disconnect failed
04-06 16:10:42.730  5885  6027 I mali_winsys: new_window_surface() [1440x168] return: 0x3000
04-06 16:10:42.738  5606 10203 I mali_winsys: new_window_surface() [1590x909] return: 0x3000
04-06 16:10:42.919  5606  5640 V DisplayPowerController: Brightness [63] reason changing to: 'automatic', previous reason: 'manual'.
04-06 16:10:42.920  5606  5606 V SettingsProvider: Notifying for 0: content://settings/system/screen_brightness
04-06 16:10:43.206  5606  5627 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{97ee873 u0 com.android.gallery3d/.app.GalleryActivity t23 f}
04-06 16:10:43.206  5606  5627 W ActivityTaskManager: Activity pause timeout for ActivityRecord{97ee873 u0 com.android.gallery3d/.app.GalleryActivity t23 f}
04-06 16:10:43.251  5606  5627 I ActivityTaskManager: Config changes=20000480 {1.0 404mcc10mnc [en_IN] ldltr sw411dp w797dp h387dp 560dpi nrml long hdr land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2960, 1440) mAppBounds=Rect(0, 0 - 2792, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.360}

Full logs :

Relevant screenshots

image

Solutions

Workaround

Possible fixes