Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: Parse error at offset 165: Missing a colon after a name of object member. #2340

Open
robertlevonyan opened this issue Apr 12, 2024 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@robertlevonyan
Copy link

Environment

  • Android OS version: 11
  • Devices affected: OnePlus8Pro
  • Maps SDK Version: 11.2.2

Observed behavior and steps to reproduce

The crash is reported via Crashlytics

Expected behavior

Do not have crash

Additional links and references

Fatal Exception: java.lang.IllegalArgumentException: Parse error at offset 165: Missing a colon after a name of object member.
       at com.mapbox.maps.StyleManager.addPersistentStyleLayer(StyleManager.java)
       at com.mapbox.maps.MapboxStyleManager.addPersistentStyleLayer(MapboxStyleManager.kt:12)
       at com.mapbox.maps.Style.addPersistentStyleLayer(Style.kt:10)
       at com.mapbox.maps.plugin.locationcomponent.LocationLayerWrapper.bindTo(LocationLayerWrapper.kt:11)
       at com.mapbox.maps.plugin.locationcomponent.LocationComponentPositionManager.addLayerToMap(LocationComponentPositionManager.kt:39)
       at com.mapbox.maps.plugin.locationcomponent.LocationIndicatorLayerRenderer.addLayers(LocationIndicatorLayerRenderer.kt:7)
       at com.mapbox.maps.plugin.locationcomponent.LocationPuckManager.initialize(LocationPuckManager.kt:71)
       at com.mapbox.maps.plugin.locationcomponent.LocationPuckManager$updateSettings$1.invoke(LocationPuckManager.kt:2)
       at com.mapbox.maps.plugin.locationcomponent.LocationPuckManager$updateSettings$1.invoke(LocationPuckManager.kt:1)
       at com.mapbox.maps.plugin.MapDelegateProviderImpl.getStyle$lambda$0(MapDelegateProviderImpl.kt:11)
       at com.mapbox.maps.MapboxMap.getStyle(MapboxMap.kt:2)
       at com.mapbox.maps.plugin.MapDelegateProviderImpl.getStyle(MapDelegateProviderImpl.kt:14)
       at com.mapbox.maps.plugin.locationcomponent.LocationPuckManager.updateSettings(LocationPuckManager.kt:48)
       at com.mapbox.maps.plugin.locationcomponent.LocationComponentPluginImpl.applySettings(LocationComponentPluginImpl.kt:66)
       at com.mapbox.maps.plugin.locationcomponent.generated.LocationComponentSettingsBase.updateSettings(LocationComponentSettingsBase.kt:24)
       at com.mapbox.maps.extension.compose.internal.SettingsUtilsKt.applySettings(SettingsUtils.kt:4)
       at com.mapbox.maps.extension.compose.internal.MapboxMapNodeKt$MapboxMapComposeNode$2$5.invoke(MapboxMapNode.kt:2)
       at com.mapbox.maps.extension.compose.internal.MapboxMapNodeKt$MapboxMapComposeNode$2$5.invoke(MapboxMapNode.kt:1)
       at androidx.compose.runtime.changelist.Operation$UpdateNode.execute(Operation.kt:17)
       at androidx.compose.runtime.changelist.Operations.executeAndFlushAllPendingOperations(Operations.kt:23)
       at androidx.compose.runtime.changelist.ChangeList.executeAndFlushAllPendingChanges(ChangeList.kt:3)
       at androidx.compose.runtime.CompositionImpl.applyChangesInLocked(Composition.kt:50)
       at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:6)
       at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:182)
       at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:182)
       at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:7)
       at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.java:48)
       at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch(AndroidUiDispatcher.java:48)
       at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:48)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:970)
       at android.view.Choreographer.doCallbacks(Choreographer.java:796)
       at android.view.Choreographer.doFrame(Choreographer.java:727)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7680)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:423)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
@robertlevonyan robertlevonyan added the bug 🪲 Something isn't working label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant