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

streetview: sample in readme doesn't work #346

Closed
lawm opened this issue Jul 22, 2023 · 2 comments
Closed

streetview: sample in readme doesn't work #346

lawm opened this issue Jul 22, 2023 · 2 comments
Assignees
Labels
priority: p4 An issue that should be addressed eventually. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@lawm
Copy link
Contributor

lawm commented Jul 22, 2023

Environment details

  1. street view compose
  2. android api 27 emulator
  3. latest commit as of today

Steps to reproduce

  1. clone android-maps-compose
  2. edit BasicMapActivity.kt to use the Readme's location:
- val singapore = LatLng(1.3588227, 103.8742114)  
+ val singapore = LatLng(1.35, 103.87)
  1. Run
    Crashes, same as StreetView Composable crashes with some locations #265

Stack trace

FATAL EXCEPTION: main
                                                                                         Process: com.google.maps.android.compose, PID: 10410
                                                                                         com.google.maps.api.android.lib6.common.apiexception.f: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter it
                                                                                         	at com.google.maps.api.android.lib6.streetview.camera.i.g(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (040700-0):23)
                                                                                         	at com.google.maps.api.android.lib6.streetview.camera.e.run(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (040700-0):0)
                                                                                         	at android.os.Handler.handleCallback(Handler.java:790)
                                                                                         	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                         	at android.os.Looper.loop(Looper.java:164)
                                                                                         	at android.app.ActivityThread.main(ActivityThread.java:6494)
                                                                                         	at java.lang.reflect.Method.invoke(Native Method)
                                                                                         	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
                                                                                         	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
                                                                                         Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter it
                                                                                         	at com.google.maps.android.compose.streetview.StreetViewPanoramaPropertiesNode.onAttached$lambda$3(Unknown Source:7)
                                                                                         	at com.google.maps.android.compose.streetview.StreetViewPanoramaPropertiesNode.$r8$lambda$u0P0-MFqw789nPtol3qohzgcP-I(Unknown Source:0)
                                                                                         	at com.google.maps.android.compose.streetview.StreetViewPanoramaPropertiesNode$$ExternalSyntheticLambda3.onStreetViewPanoramaChange(Unknown Source:2)
                                                                                         	at com.google.android.gms.maps.zzai.zzb(com.google.android.gms:play-services-maps@@18.0.0:1)
                                                                                         	at com.google.android.gms.maps.internal.zzbk.zza(com.google.android.gms:play-services-maps@@18.0.0:2)
                                                                                         	at com.google.android.gms.internal.maps.zzb.onTransact(com.google.android.gms:play-services-maps@@18.0.0:3)
                                                                                         	at android.os.Binder.transact(Binder.java:627)
                                                                                         	at fh.c(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (040700-0):2)
                                                                                         	at com.google.maps.api.android.lib6.streetview.camera.i.g(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (040700-0):22)
                                                                                         	at com.google.maps.api.android.lib6.streetview.camera.e.run(:com.google.android.gms.dynamite_mapsdynamite@[email protected] (040700-0):0) 
                                                                                         	at android.os.Handler.handleCallback(Handler.java:790) 
                                                                                         	at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                                         	at android.os.Looper.loop(Looper.java:164) 
                                                                                         	at android.app.ActivityThread.main(ActivityThread.java:6494) 
                                                                                         	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                         	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
                                                                                         	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 

Following these steps will guarantee the quickest resolution possible.

Thanks!

@lawm lawm added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 22, 2023
@wangela
Copy link
Member

wangela commented Jul 22, 2023

If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.

@lawm Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

lawm added a commit to lawm/android-maps-compose that referenced this issue Jul 22, 2023
The example given crashes. Changed location to match BasicMapActivity.kt, which works.
@kikoso kikoso added priority: p4 An issue that should be addressed eventually. and removed triage me I really want to be triaged. labels Jul 23, 2023
lawm added a commit to lawm/android-maps-compose that referenced this issue Jul 28, 2023
The example given crashes. Changed location to match BasicMapActivity.kt, which works.
wangela pushed a commit that referenced this issue Jul 28, 2023
The example given crashes. Changed location to match BasicMapActivity.kt, which works.
@wangela
Copy link
Member

wangela commented Jul 28, 2023

Fixed by #345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p4 An issue that should be addressed eventually. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants