question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when viewing pic I just uploaded

See original GitHub issue

Latest macgills/3601-depiction-thumbnails (most probably also happens on latest master). Maybe not reproducible. Steps:

  • Upload image (with depiction and no categories)
  • Tap it
  • Details activity loads, then crashes
APP_VERSION_CODE=561
APP_VERSION_NAME=2.12.3-debug-macgills/3601-depiction-thumbnails
ANDROID_VERSION=9
PHONE_MODEL=SM-G970F
STACK_TRACE=java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 502, found: 501 Pager id: fr.free.nrw.commons:id/mediaDetailsPager Pager class: class androidx.viewpager.widget.ViewPager Problematic adapter: class fr.free.nrw.commons.media.MediaDetailPagerFragment$MediaDetailAdapter
	at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1143)
	at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
	at androidx.viewpager.widget.ViewPager.onMeasure(ViewPager.java:1622)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
	at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
	at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
	at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
	at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
	at android.view.View.measure(View.java:24967)
	at androidx.viewpager.widget.ViewPager.onMeasure(ViewPager.java:1638)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
	at android.view.View.measure(View.java:24967)
	at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
	at android.view.View.measure(View.java:24967)
	at androidx.drawerlayout.widget.DrawerLayout.onMeasure(DrawerLayout.java:1119)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
	at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:143)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
	at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
	at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
	at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
	at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7134)
	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
	at com.android.internal.policy.DecorView.onMeasure(DecorView.java:992)
	at android.view.View.measure(View.java:24967)
	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:3266)
	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1993)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2295)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1853)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8476)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
	at android.view.Choreographer.doCallbacks(Choreographer.java:761)
	at android.view.Choreographer.doFrame(Choreographer.java:696)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:214)
	at android.app.ActivityThread.main(ActivityThread.java:7032)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

IS_SILENT=false
USER_EMAIL=
USER_CRASH_DATE=2020-04-24T16:47:10.709+09:00
REPORT_ID=4abadeef-c5f5-49a0-9164-ad54da062257

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
macgillscommented, May 28, 2020

image

This method must be called when ContributionListFragment receives updated data

1reaction
misaochancommented, May 7, 2020

Yes, I was on 2.13-release as well (the ACRA report just doesn’t reflect the branch). I guess I would be OK with us just fixing #3730 (since it seems more easily reproducible), then we can do the beta release and see how prevalent this crash turns out to be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Photos app runs slowly, crashes when I try to upload
Whenever I try and upload photos and videos, say from my gopro, the app crashes. I have to go in and manually select...
Read more >
An Ultimate Guide to Fix Photos App Crashing Issue on ...
One of the major reasons for this issue is an old or outdated Photos app that could be running on your system. Therefore,...
Read more >
Apps crash when taking photo to upload - Apple Community
Apps crash when taking photo to upload · Force reboot your device by holding down the Power button and Home button until the...
Read more >
What to do if Instagram is Crashing when trying to Upload a ...
If Instagram is crashing when you are trying to upload a photo, then check your phone's storage space. This Instagram crashing issue may...
Read more >
App crashing while uploading certain pictures. #1323 - GitHub
Steps to reproduce: Open app and click on upload picture and try to upload picture(Does not happen with every picture). ... Expected behavior:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found