com.tns.NativeScriptException: Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.elektra/files/app/app.component.js', line: 44, column: 31 Frame: function:'android.location.LocationListener.onLocationChanged', file:'/data/data/org.nativescript.elektra/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 25, column: 17

Stack Overflow | Julisch | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Nativescript Angular: cannot read property of undefined

    Stack Overflow | 9 months ago | Julisch
    com.tns.NativeScriptException: Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.elektra/files/app/app.component.js', line: 44, column: 31 Frame: function:'android.location.LocationListener.onLocationChanged', file:'/data/data/org.nativescript.elektra/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 25, column: 17
  2. 0

    GitHub comment 9#277507857

    GitHub | 3 months ago | bfv
    com.tns.NativeScriptException: Calling js method onLocationChanged failed [object Object] File: "file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js, line: 227, column: 12 StackTrace: Frame: function:'SafeSubscriber.__tryOrUnsub', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js', line: 227, column: 13 Frame: function:'SafeSubscriber.next', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js', line: 172, column: 22 Frame: function:'Subscriber._next', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js', line: 125, column: 26 Frame: function:'Subscriber.next', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subscriber.js', line: 89, column: 18 Frame: function:'Subject.next', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/rxjs/Subject.js', line: 55, column: 25 Frame: function:'EventEmitter.emit', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4090, column: 80 Frame: function:'NgZone.triggerError', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4451, column: 80 Frame: function:'onHandleError', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/@angular/core/bundles/core.umd.js', line: 4412, column: 27 Frame: function:'ZoneDelegate.handleError', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 194, column: 39 Frame: function:'Zone.runGuarded', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 100, column: 44 Frame: function:'', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js', line: 73, column: 29 Frame: function:'onLocationChanged', file:'file:///data/data/io.bfv.sailert/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 23, column: 17
  3. 0

    Exception happened when running on device

    GitHub | 10 months ago | Zetazzz
    com.tns.NativeScriptException: Calling js method onInfo failed TypeError: Cannot read property 'msg' of undefined File: "/data/data/org.nativescript.audio/files/app/main-view-model.js, line: 119, column: 50 StackTrace: Frame: function:'playerOptions.infoCallback', file:'/data/data/org.nativescript.audio/files/app/main-view-model.js', line: 119, column: 51 Frame: function:'_this.player.setOnInfoListener.MediaPlayer.OnInfoListener.onInfo', file:'/data/data/org.nativescript.audio/files/app/tns_modules/nativescript-audio/src/android/player.js', line: 45, column: 37
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    onRelease called when .get() is null

    GitHub | 9 months ago | Ivshti
    com.tns.NativeScriptException: Calling js method onRelease failed TypeError: Cannot read property 'notify' of null File: \"/data/data/org.nativescript.stremio/files/app/tns_modules/nativescript-fresco/nativescript-fresco.js, line: 282, column: 34 StackTrace: Frame: function:'com.facebook.drawee.controller.ControllerListener.onRelease', file:'/data/data/org.nativescript.stremio/files/app/tns_modules/nativescript-fresco/nativescript-fresco.js', line: 282, column: 35
  6. 0

    App keeps crashing.

    GitHub | 10 months ago | SP1966
    com.tns.NativeScriptException: JavaScript object for Java ID 435884 not found. W/System.err( 5788): Attempting to call method draw

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tns.NativeScriptException

      Calling js method onLocationChanged failed TypeError: Cannot set property 'latitude' of undefined File: "/data/data/org.nativescript.elektra/files/app/app.component.js, line: 44, column: 30 StackTrace: Frame: function:'', file:'/data/data/org.nativescript.elektra/files/app/app.component.js', line: 44, column: 31 Frame: function:'android.location.LocationListener.onLocationChanged', file:'/data/data/org.nativescript.elektra/files/app/tns_modules/nativescript-geolocation/nativescript-geolocation.js', line: 25, column: 17

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      Runtime.callJSMethod
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
      4. com.tns.Runtime.callJSMethod(Runtime.java:712)
      5. com.tns.Runtime.callJSMethod(Runtime.java:693)
      6. com.tns.Runtime.callJSMethod(Runtime.java:683)
      6 frames
    3. com.tns.gen
      LocationListener.onLocationChanged
      1. com.tns.gen.android.location.LocationListener.onLocationChanged(LocationListener.java:11)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:255)
      2. android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:184)
      3. android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:200)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:176)
      6. android.app.ActivityThread.main(ActivityThread.java:5419)
      6 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame