java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3453, result=-1, data=null} to activity {com.pantoninc.piV1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25

GitHub | Daxito | 4 months ago
  1. 0

    Cannot read property 'getWidth' of null when saveToGallery=true

    GitHub | 4 months ago | Daxito
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3453, result=-1, data=null} to activity {com.pantoninc.piV1/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: Calling js method onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25
  2. 0

    GitHub comment 32#262824953

    GitHub | 2 weeks ago | 3rror404
    com.tns.NativeScriptException: Calling js method onCreate failed TypeError: Cannot read property 'getIntent' of undefined File: "/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/ui/frame/frame.js, line: 685, column: 18 StackTrace: Frame: function:'BackgroundGeolocation.getAdapter', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/nativescript-background-geolocation-lt/background-geolocation.js', line: 426, column: 144 Frame: function:'BackgroundGeolocation.init', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/nativescript-background-geolocation-lt/background-geolocation.js', line: 29, column: 14 Frame: function:'', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/nativescript-background-geolocation-lt/background-geolocation.js', line: 13, column: 27 Frame: function:'Observable.notify', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/data/observable/observable.js', line: 149, column: 23 Frame: function:'onActivityCreated', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/application/application.js', line: 19, column: 24 Frame: function:'ActivityCallbacksImplementation.onCreate', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/ui/frame/frame.js', line: 685, column: 19 Frame: function:'NativeScriptActivity.onCreate', file:'/data/data/com.transistorsoft.backgroundgeolocation.nativescript/files/app/tns_modules/ui/frame/activity.js', line: 13, column: 25
  3. 0

    tns-core-modules@next is giving me errors.

    GitHub | 1 month ago | 9thwall
    com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function:'ViewStyler.setNativeLayoutParamsProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 507, column: 69 Frame: function:'StylePropertyChangedHandler.applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1263, column: 14 Frame: function:'Style._applyStyleProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 1036, column: 25 Frame: function:'Style._applyProperty', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 999, column: 14 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 980, column: 14 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'onLayoutParamsChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 130, column: 11 Frame: function:'DependencyObservable._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 213, column: 13 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 978, column: 45 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/styling/style.js', line: 856, column: 18 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 521, column: 42 Frame: function:'Page._addViewToNativeVisualTree', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page.js', line: 102, column: 41 Frame: function:'eachChild', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 160, column: 61 Frame: function:'Page._eachChildView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/page/page-common.js', line: 286, column: 9 Frame: function:'View._onAttached', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 165, column: 18 Frame: function:'View._addViewCore', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view.js', line: 126, column: 18 Frame: function:'View._addView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/core/view-common.js', line: 1136, column: 14 Frame: function:'onFragmentShown', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 40, column: 11 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/frame.js', line: 612, column: 13 Frame: function:'FragmentClass.onCreateView', file:'/data/data/org.nativescript.app/files/app/tns_modules/ui/frame/fragment.js', line: 23, column: 38
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 3076#260058601

    GitHub | 4 weeks ago | HiskDeathnote
    com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function:'ViewStyler.setNativeLayoutParamsProperty', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js', line: 507, column: 69 Frame: function:'StylePropertyChangedHandler.applyProperty', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 1326, column: 14 Frame: function:'Style._applyStyleProperty', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 1086, column: 25 Frame: function:'Style._applyProperty', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 1049, column: 14 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 1030, column: 14 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'onLayoutParamsChanged', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 130, column: 11 Frame: function:'DependencyObservable._onPropertyChanged', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/dependency-observable.js', line: 213, column: 13 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 1028, column: 45 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'set', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/styling/style.js', line: 856, column: 18 Frame: function:'set', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view-common.js', line: 527, column: 42 Frame: function:'Page._addViewToNativeVisualTree', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/page/page.js', line: 102, column: 41 Frame: function:'eachChild', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js', line: 160, column: 61 Frame: function:'Page._eachChildView', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/page/page-common.js', line: 286, column: 9 Frame: function:'View._onAttached', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js', line: 165, column: 18 Frame: function:'View._addViewCore', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view.js', line: 126, column: 18 Frame: function:'View._addView', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/core/view-common.js', line: 1163, column: 14 Frame: function:'onFragmentShown', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/frame/frame.js', line: 40, column: 11 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/frame/frame.js', line: 612, column: 13 Frame: function:'FragmentClass.onCreateView', file:'/data/data/org.nativescript.Kelal/files/app/tns_modules/ui/frame/fragment.js', line: 23, column: 38
  6. 0

    GitHub comment 2733#258642199

    GitHub | 1 month ago | viniciodeltoro
    com.tns.NativeScriptException: Calling js method onCreateView failed TypeError: Cannot read property 'LayoutParams' of undefined File: "/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js, line: 507, column: 68 StackTrace: Frame: function:'ViewStyler.setNativeLayoutParamsProperty', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js', line: 507, column: 69 Frame: function:'StylePropertyChangedHandler.applyProperty', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 1326, column: 14 Frame: function:'Style._applyStyleProperty', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 1086, column: 25 Frame: function:'Style._applyProperty', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 1049, column: 14 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 1030, column: 14 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'onLayoutParamsChanged', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 130, column: 11 Frame: function:'DependencyObservable._onPropertyChanged', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/dependency-observable.js', line: 213, column: 13 Frame: function:'Style._onPropertyChanged', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 1028, column: 45 Frame: function:'DependencyObservable._setValueInternal', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/dependency-observable.js', line: 307, column: 18 Frame: function:'DependencyObservable._setValue', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/dependency-observable.js', line: 133, column: 14 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/styling/style.js', line: 856, column: 18 Frame: function:'Object.defineProperty.set', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view-common.js', line: 527, column: 42 Frame: function:'Page._addViewToNativeVisualTree', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/page/page.js', line: 102, column: 41 Frame: function:'eachChild', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js', line: 160, column: 61 Frame: function:'Page._eachChildView', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/page/page-common.js', line: 286, column: 9 Frame: function:'View._onAttached', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js', line: 165, column: 18 Frame: function:'View._addViewCore', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view.js', line: 126, column: 18 Frame: function:'View._addView', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/core/view-common.js', line: 1163, column: 14 Frame: function:'onFragmentShown', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/frame/frame.js', line: 40, column: 11 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/frame/frame.js', line: 612, column: 13 Frame: function:'FragmentClass.onCreateView', file:'/data/data/org.nativescript.gopost/files/app/tns_modules/ui/frame/fragment.js', line: 23, column: 38

    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 onActivityResult failed TypeError: Cannot read property 'getWidth' of null File: "/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js, line: 53, column: 90 StackTrace: Frame: function:'appModule_1.android.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/camera/camera.js', line: 53, column: 91 Frame: function:'ActivityCallbacksImplementation.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/frame.js', line: 769, column: 13 Frame: function:'NativeScriptActivity.onActivityResult', file:'/data/data/com.pantoninc.piV1/files/app/tns_modules/ui/frame/activity.js', line: 33, column: 25

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      NativeScriptActivity.onActivityResult
      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)
      7. com.tns.NativeScriptActivity.onActivityResult(NativeScriptActivity.java:69)
      7 frames
    3. Android Platform
      ActivityThread.deliverResults
      1. android.app.Activity.dispatchActivityResult(Activity.java:7137)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:4916)
      2 frames