[2.13-release] Crash when trying to upload images
See original GitHub issueSummary:
I face the following crash whenever I try to upload a picture using the app build from the 2.13-release
branch pointing at c961099013a19b91c46763216331795c36957b5d
Steps to reproduce: Pre-requisite: Ensure that ‘Don’t keep activities’ is turned on in the device’s developer options.
- Build an app from the
2.13-release
branch - Open the app
- Tap on the + button
- Choose the ‘Gallery’ or ‘Camera’ option
- Complete the action for the corresponding action
- Observe the crash
System logs:
04-10 22:43:56.314 32368-32368/? E/MotionRecognitionManager: motionService = null
04-10 22:43:56.394 189-189/? E/BufferQueueCore: [Starting fr.free.nrw.commons] setDefaultMaxBufferCount: setting count to 3, previous is 2
04-10 22:43:56.955 32107-32107/? E/ACRA: ACRA caught a RuntimeException for fr.free.nrw.commons
java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.MainActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@3e9300bc: Unmarshalling unknown type code 2131296410 at offset 7596
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3150)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3260)
at android.app.ActivityThread.access$1000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1734)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6934)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@3e9300bc: Unmarshalling unknown type code 2131296410 at offset 7596
at android.os.Parcel.readValue(Parcel.java:2228)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2546)
at android.os.Parcel.readSparseArray(Parcel.java:1874)
at android.os.Parcel.readValue(Parcel.java:2209)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2485)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:822)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:772)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2659)
at androidx.fragment.app.FragmentManagerImpl.dispatchCreate(FragmentManagerImpl.java:2607)
at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:235)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:316)
at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)
at fr.free.nrw.commons.di.CommonsDaggerAppCompatActivity.onCreate(CommonsDaggerAppCompatActivity.java:24)
at fr.free.nrw.commons.theme.BaseActivity.onCreate(BaseActivity.java:27)
at fr.free.nrw.commons.contributions.MainActivity.onCreate(MainActivity.java:83)
at android.app.Activity.performCreate(Activity.java:6609)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3103)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3260)
at android.app.ActivityThread.access$1000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1734)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6934)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Device and Android version: Samsung SM-J111F; Android 5.1.1
Commons app version: 2.13-reelase branch @ c961099013a19b91c46763216331795c36957b5d prodDebug variant
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
SwOS version 2.13 released! - MikroTik - Forum
If the switch still boots into an older (primary) version, try manually uploading the file in the "Upgrade" page.
Read more >Release notes for WeBWorK 2.13 - WeBWorK_wiki
this means that you have made local changes you might want to save. ... from image subroutine and preserve aspect ratio; Fix crash...
Read more >Wagtail 2.0 release notes
... Fixed crash in XML sitemap generator when all pages on the site are private ... Reinstated missing error reporting on image upload...
Read more >What's new in the v2.13 release series | YugabyteDB Docs
... [PLAT-3598] The releases page will crash if you create a release whose name contains "key"; [PLAT-3607] Incorrect default node placements for particular ......
Read more >VMware Carbon Black Cloud Windows Sensor 3.8.0.627 ...
UAV-2573: Improved Event Batch Upload failure handling to use backend ... crashes on Windows 7 (x64) and Windows Server 2008 R2 machines.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I reproduced. Just turn on “don’t keep activities”
I’d write an automated test where you write a Contribution to a parcel and then read a contribution from a parcel as that is what is failing.
It would be best if we weren’t writing any code though and we could just use the
Parcelize
annotation from kotlinI think the crash is in Nearby Fragment, I tried removing the nearby fragment from the ViewPager in the MainActivity, the app did not crash with the said steps( although It did crash when it was there), also I have already tested sending contribution via intent packaged as bundle without any crash. I am yet to figure out the exact thing in NearbyFragment, which is causing this