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.

Top crashes in v2.8.4

See original GitHub issue

Top crashes in our Play Store developer console currently. Luckily most of these are NPEs which should be quite simple to fix. 😃 If anyone is interested in working on this, please tell us which crash exactly you are working on so that we don’t duplicate effort.

  1. java.lang.NullPointerException at fr.free.nrw.commons.explore.images.SearchImageFragment.updateImageList
io.reactivex.exceptions.OnErrorNotImplementedException: 
  at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:704)
  at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java:701)
  at io.reactivex.internal.observers.LambdaObserver.onError (LambdaObserver.java:74)
  at io.reactivex.internal.observers.LambdaObserver.onNext (LambdaObserver.java:64)
  at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:200)
  at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:252)
  at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:109)
  at android.os.Handler.handleCallback (Handler.java:754)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:163)
  at android.app.ActivityThread.main (ActivityThread.java:6228)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:904)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:794)
Caused by: java.lang.NullPointerException: 
  at fr.free.nrw.commons.explore.images.SearchImageFragment.updateImageList (SearchImageFragment.java:126)
  at fr.free.nrw.commons.explore.SearchActivity.lambda$setTabs$1$SearchActivity (SearchActivity.java:114)
  at fr.free.nrw.commons.explore.SearchActivity$$Lambda$1.accept (Unknown Source)
  at io.reactivex.internal.observers.LambdaObserver.onNext (LambdaObserver.java:60)
  1. java.lang.NullPointerException at fr.free.nrw.commons.utils.FileUtils.saveFileFromURI
java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2793)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2864)
  at android.app.ActivityThread.-wrap12 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1567)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:156)
  at android.app.ActivityThread.main (ActivityThread.java:6523)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:942)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:832)
Caused by: java.lang.NullPointerException: 
  at fr.free.nrw.commons.utils.FileUtils.saveFileFromURI (FileUtils.java:52)
  at fr.free.nrw.commons.utils.ContributionUtils.saveFileBeingUploadedTemporarily (ContributionUtils.java:35)
  at fr.free.nrw.commons.upload.ShareActivity.receiveImageIntent (ShareActivity.java:355)
  at fr.free.nrw.commons.upload.ShareActivity.onCreate (ShareActivity.java:302)
  at android.app.Activity.performCreate (Activity.java:6915)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1123)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2746)

  1. android.content.res.Resources$NotFoundException at fr.free.nrw.commons.contributions.ContributionsActivity.displayUploadCount
io.reactivex.exceptions.UndeliverableException: 
  at io.reactivex.plugins.RxJavaPlugins.onError (RxJavaPlugins.java:349)
  at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess (ConsumerSingleObserver.java:64)
  at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run (SingleObserveOn.java:81)
  at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:109)
  at android.os.Handler.handleCallback (Handler.java:789)
  at android.os.Handler.dispatchMessage (Handler.java:98)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6940)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Caused by: android.content.res.Resources$NotFoundException: 
  at android.content.res.ResourcesImpl.getQuantityText (ResourcesImpl.java:294)
  at android.content.res.Resources.getQuantityText (Resources.java:428)
  at android.content.res.Resources.getQuantityString (Resources.java:504)
  at fr.free.nrw.commons.contributions.ContributionsActivity.displayUploadCount (ContributionsActivity.java:306)
  at fr.free.nrw.commons.contributions.ContributionsActivity.bridge$lambda$0$ContributionsActivity (Unknown Source)
  at fr.free.nrw.commons.contributions.ContributionsActivity$$Lambda$0.accept (Unknown Source:4)
  at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess (ConsumerSingleObserver.java:61)
  1. java.lang.NullPointerException at fr.free.nrw.commons.location.LatLng.from
java.lang.RuntimeException: 
  at android.app.ActivityThread.deliverResults (ActivityThread.java:4517)
  at android.app.ActivityThread.handleSendResult (ActivityThread.java:4560)
  at android.app.ActivityThread.-wrap19 (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1744)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6798)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)
Caused by: java.lang.NullPointerException: 
  at fr.free.nrw.commons.location.LatLng.from (LatLng.java:45)
  at fr.free.nrw.commons.location.LocationServiceManager.getLKL (LocationServiceManager.java:109)
  at fr.free.nrw.commons.nearby.NearbyActivity.onRequestPermissionsResult (NearbyActivity.java:224)
  at android.app.Activity.dispatchRequestPermissionsResult (Activity.java:7425)
  at android.app.Activity.dispatchActivityResult (Activity.java:7276)
  at android.app.ActivityThread.deliverResults (ActivityThread.java:4513)
  1. java.lang.NullPointerException at fr.free.nrw.commons.category.CategoryImagesListFragment.getAdapter
java.lang.RuntimeException: 
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3715)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3755)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2939)
  at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:4833)
  at android.app.ActivityThread.-wrap18 (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1618)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6710)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:770)
Caused by: java.lang.NullPointerException: 
  at fr.free.nrw.commons.category.CategoryImagesListFragment.getAdapter (CategoryImagesListFragment.java:267)
  at fr.free.nrw.commons.category.CategoryDetailsActivity.getMediaAtPosition (CategoryDetailsActivity.java:156)
  at fr.free.nrw.commons.media.MediaDetailFragment.onResume (MediaDetailFragment.java:207)
  at android.support.v4.app.Fragment.performResume (Fragment.java:2390)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1474)
  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1759)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1827)
  at android.support.v4.app.FragmentManagerImpl.dispatchStateChange (FragmentManager.java:3244)
  at android.support.v4.app.FragmentManagerImpl.dispatchResume (FragmentManager.java:3212)
  at android.support.v4.app.Fragment.performResume (Fragment.java:2396)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1474)
  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1759)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1827)
  at android.support.v4.app.FragmentManagerImpl.dispatchStateChange (FragmentManager.java:3244)
  at android.support.v4.app.FragmentManagerImpl.dispatchResume (FragmentManager.java:3212)
  at android.support.v4.app.FragmentController.dispatchResume (FragmentController.java:217)
  at android.support.v4.app.FragmentActivity.onResumeFragments (FragmentActivity.java:509)
  at android.support.v4.app.FragmentActivity.onPostResume (FragmentActivity.java:498)
  at android.support.v7.app.AppCompatActivity.onPostResume (AppCompatActivity.java:171)
  at android.app.Activity.performResume (Activity.java:7110)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3690)
  1. java.lang.NullPointerException at fr.free.nrw.commons.category.CategoryImagesListFragment.getAdapter
java.lang.RuntimeException: 
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4035)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4100)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3271)
  at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5200)
  at android.app.ActivityThread.access$1100 (ActivityThread.java:218)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1740)
  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.NullPointerException: 
  at fr.free.nrw.commons.category.CategoryImagesListFragment.getAdapter (CategoryImagesListFragment.java:267)
  at fr.free.nrw.commons.category.CategoryDetailsActivity.getMediaAtPosition (CategoryDetailsActivity.java:156)
  at fr.free.nrw.commons.media.MediaDetailFragment.onResume (MediaDetailFragment.java:207)
  at android.support.v4.app.Fragment.performResume (Fragment.java:2390)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1474)
  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1759)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1827)
  at android.support.v4.app.FragmentManagerImpl.dispatchStateChange (FragmentManager.java:3244)
  at android.support.v4.app.FragmentManagerImpl.dispatchResume (FragmentManager.java:3212)
  at android.support.v4.app.Fragment.performResume (Fragment.java:2396)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1474)
  at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1759)
  at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1827)
  at android.support.v4.app.FragmentManagerImpl.dispatchStateChange (FragmentManager.java:3244)
  at android.support.v4.app.FragmentManagerImpl.dispatchResume (FragmentManager.java:3212)
  at android.support.v4.app.FragmentController.dispatchResume (FragmentController.java:217)
  at android.support.v4.app.FragmentActivity.onResumeFragments (FragmentActivity.java:509)
  at android.support.v4.app.FragmentActivity.onPostResume (FragmentActivity.java:498)
  at android.support.v7.app.AppCompatActivity.onPostResume (AppCompatActivity.java:171)
  at android.app.Activity.performResume (Activity.java:6748)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4024)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kbbglcommented, Oct 14, 2018

For number 3:

in ContributionsActivity.java:306:

method displayUploadCount

getSupportActionBar().setSubtitle(getResources()
            .getQuantityString(R.plurals.contributions_subtitle,
                    uploadCount, uploadCount));

getQuantityString throws Resource.NotFoundException. I think there are two possible issues:

  1. I went through some strings.xml files in values-{LANGUAGE} folders and noticed that there are languages that have mandatory plurals that need to be defined up for contributions_subtitle(and other plurals as well). The highlight reads, for Arabic for instance:

For example, in ar:

<plurals name="contributions_subtitle">
  <item quantity="zero">\@string/contributions_subtitle_zero</item>
  <item quantity="one">%1$d رفع</item>
  <item quantity="other">%1$d مرفوعات</item>
  <!—- need to define additional quantities here (i.e.  “few”, “two”) —->
</plurals>
<plurals name="starting_multiple_uploads">
  <item quantity="one">جارٍ بدء %1$d رفع</item>
  <item quantity="other">جارٍ بدء %1$d مرفوعات</item>
</plurals>

For locale "ar" (Arabic) the following quantities should also be defined: few, many, two

In Android documentation:

Don’t be misled either by the fact that, say, two sounds like it could only apply to the quantity 2: a language may require that 2, 12, 102 (and so on) are all treated like one another but differently to other quantities. Rely on your translator to know what distinctions their language actually insists upon.

The missing translations are also seen in the Translations Editor (they are marked in red - hovering over them indicates which literal items are missing).

  1. Some languages don’t have a strings.xml file, therefore the resource can’t be found and the exception is thrown.

I set a default value for contributions_subtitle as ‘None’ and committed.

0reactions
misaochancommented, Oct 31, 2018

Reopening for number 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Of CAR CRASHES Compilation 2022 - Episode 2/4
Best of car crashes compilation in 2022, ultimate idiots in cars car crash driving fails dash cam videos bad ... 8.4 K views...
Read more >
The 10 Most Dramatic Crashes of the 2020 F1 Season
From a catalogue of collisions at Mugello to Romain Grosjean's heart-stopping crash and escape in Bahrain.For more F1® videos, ...
Read more >
FREERIDE WORLD TOUR | TOP 10 CRASHES ALL TIME
Check out some of biggest crashes we've seen on the Freeride World Tour#FWT21 ... 1.2M views 2 years ago. 1,248,037 views • Nov...
Read more >
The Worst F1 Car Crashes In The Last Years - YouTube
These are the worst car accidents to occur during F1 events. ... Fernando Alonso is saved from this turbulent top -ten!
Read more >
10 Worst Crashes In F1 History - YouTube
For this list, we'll be looking at the most devastating crashes to ... Watch more great car videos here: Top 10 Most Popular...
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