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.

Fatal Crash trying to add data to a layer

See original GitHub issue
Crash report
11-14 18:33:59.046 E AndroidRuntime: FATAL EXCEPTION: main
11-14 18:33:59.046 E AndroidRuntime: Process: com.google.android.gnd, PID: 18377
11-14 18:33:59.046 E AndroidRuntime: java.util.UnknownFormatConversionException: Conversion = 'End of String'
11-14 18:33:59.046 E AndroidRuntime: 	at java.util.Formatter$FormatSpecifierParser.peek(Formatter.java:2642)
11-14 18:33:59.046 E AndroidRuntime: 	at java.util.Formatter$FormatSpecifierParser.<init>(Formatter.java:2603)
11-14 18:33:59.046 E AndroidRuntime: 	at java.util.Formatter.parse(Formatter.java:2558)
11-14 18:33:59.046 E AndroidRuntime: 	at java.util.Formatter.format(Formatter.java:2505)
11-14 18:33:59.046 E AndroidRuntime: 	at java.util.Formatter.format(Formatter.java:2459)
11-14 18:33:59.046 E AndroidRuntime: 	at java.lang.String.format(String.java:2870)
11-14 18:33:59.046 E AndroidRuntime: 	at timber.log.Timber$Tree.formatMessage(Timber.java:539)
11-14 18:33:59.046 E AndroidRuntime: 	at timber.log.Timber$Tree.prepareLog(Timber.java:525)
11-14 18:33:59.046 E AndroidRuntime: 	at timber.log.Timber$Tree.e(Timber.java:450)
11-14 18:33:59.046 E AndroidRuntime: 	at timber.log.Timber$1.e(Timber.java:306)
11-14 18:33:59.046 E AndroidRuntime: 	at timber.log.Timber.e(Timber.java:83)
11-14 18:33:59.046 E AndroidRuntime: 	at com.google.android.gnd.ui.home.HomeScreenFragment.lambda$showAddFeatureDialog$2$HomeScreenFragment(HomeScreenFragment.java:183)
11-14 18:33:59.046 E AndroidRuntime: 	at com.google.android.gnd.ui.home.-$$Lambda$HomeScreenFragment$UEv2Sa3uROhPYhyRlxY31dApYbM.accept(Unknown Source:6)
11-14 18:33:59.046 E AndroidRuntime: 	at com.google.android.gnd.ui.home.AddFeatureDialogFragment.lambda$createDialog$3(AddFeatureDialogFragment.java:86)
11-14 18:33:59.046 E AndroidRuntime: 	at com.google.android.gnd.ui.home.-$$Lambda$AddFeatureDialogFragment$4yjAqkqGQmGDn8kNQ2IE1NqyK4I.onClick(Unknown Source:4)
11-14 18:33:59.046 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1068)
11-14 18:33:59.046 E AndroidRuntime: 	at android.widget.AdapterView.performItemClick(AdapterView.java:330)
11-14 18:33:59.046 E AndroidRuntime: 	at android.widget.AbsListView.performItemClick(AbsListView.java:1197)
11-14 18:33:59.046 E AndroidRuntime: 	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3190)
11-14 18:33:59.046 E AndroidRuntime: 	at android.widget.AbsListView.onTouchUp(AbsListView.java:4178)
11-14 18:33:59.046 E AndroidRuntime: 	at android.widget.AbsListView.onTouchEvent(AbsListView.java:3919)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.View.dispatchTouchEvent(View.java:14540)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3114)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2787)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3120)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2801)
11-14 18:33:59.046 E AndroidRuntime: 	at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:502)
11-14 18:33:59.046 E AndroidRuntime: 	at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1890)
11-14 18:33:59.046 E AndroidRuntime: 	at android.app.Dialog.dispatchTouchEvent(Dialog.java:864)
11-14 18:33:59.046 E AndroidRuntime: 	at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
11-14 18:33:59.046 E AndroidRuntime: 	at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:460)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.View.dispatchPointerEvent(View.java:14799)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6344)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6145)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5623)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5680)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5646)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5811)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5654)
11-14 18:33:59.046 E AndroidRuntime: 	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5868)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5627)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5680)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5646)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5654)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5627)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8558)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8509)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8478)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8681)
11-14 18:33:59.047 E AndroidRuntime: 	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:259)
11-14 18:33:59.047 E AndroidRuntime: 	at android.os.MessageQueue.nativePollOnce(Native Method)
11-14 18:33:59.047 E AndroidRuntime: 	at android.os.MessageQueue.next(MessageQueue.java:335)
11-14 18:33:59.047 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:161)
11-14 18:33:59.047 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:288)
11-14 18:33:59.047 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7838)
11-14 18:33:59.047 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-14 18:33:59.047 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
11-14 18:33:59.047 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

To Reproduce Steps to reproduce the behavior:

  1. Launch app, join “sample project”
  2. add data --> “daily data”
  3. Observe crash.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
atalekarcommented, Nov 16, 2021

I think the underlying reason why this was crashing is that the layer didn’t have polygon or points selected. Currently the method in question requires any layer to collect either polygons or points - but the UI on web app allows it to be multiselect which allows you to select points only (default), polygons only, both points and polygons, neither. I should probably be a single one and required.

0reactions
gino-mcommented, Nov 16, 2021

We spoke, this can be worked around by granting contributors the right to add points or polygons via the web app. #1044 will also require the data collectors to be granted “manager” access for the interim.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: ArcMap crashes when trying to add a basemap, and ...
Go to Customize> ArcMap Options, and click the Data View tab. Uncheck the box for Enable hardware acceleration for supported layers, and click ......
Read more >
Analyzing traffic accidents in space and time, workflow
This tutorial illustrates measuring and visualizing space-time traffic accident hot spots using ArcGIS Pro.
Read more >
Layer Manager causes Fatal Error and crashes - AutoCAD
crash Acad when you attempt to open the Layer Manager. Ac. style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT ...
Read more >
NSMutableAttributedString initialisation to prevent crash
We keep getting intermittent app crash from our customers and it is related to initialisation of NSMutableAttributedString. Code: let result = try ......
Read more >
Crashes - Android Developers
There are many situations that can cause a crash in your app. Some reasons are obvious, like checking for a null value or...
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