GS290 : Gallery app crash after recording a video and tapping on recorded video preview.
- /e/ version: 0.19-q-20210929138225-stable-GS290
- Device model(s):GS290
- Device rooted: no
Summary
Gallery app crash after recording a video and tapping on recorded video preview.
The problem
Steps to reproduce
- Open Camera app and start recording a video.
- As soon as the recording stops, tap on the preview top open up the video for viewing
What is the current behavior?
Gallery app crashes.
What is the expected correct behavior?
No crash should occur.
Technical informations
Relevant logs (adb logcat
)
--------- beginning of crash
10-11 15:15:57.535 5978 5978 E AndroidRuntime: FATAL EXCEPTION: main
10-11 15:15:57.535 5978 5978 E AndroidRuntime: Process: com.android.gallery3d, PID: 5978
10-11 15:15:57.535 5978 5978 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
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7356)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
10-11 15:15:57.535 5978 5978 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
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.gallery3d.data.DataManager.getDefaultSetOf(DataManager.java:286)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.gallery3d.app.GalleryActivity.startViewAction(GalleryActivity.java:455)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.gallery3d.app.GalleryActivity.initializeByIntent(GalleryActivity.java:286)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.gallery3d.app.GalleryActivity.init(GalleryActivity.java:137)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at com.android.gallery3d.app.GalleryActivity.onCreate(GalleryActivity.java:129)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7824)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7813)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
10-11 15:15:57.535 5978 5978 E AndroidRuntime: ... 11 more
10-11 15:15:57.540 2321 6645 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
Relevant screenshots
Solutions
Workaround
Possible fixes