com.tns.NativeScriptException: Calling js method getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at StylePropertyChangedHandler.ViewStyler.setNativeLayoutParamsProperty [as _applyProperty] (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/view.js:489:18) at StylePropertyChangedHandler.applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1238:14) at Style._applyStyleProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1003:25) at Style._applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:966:14) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:947:14) at Style.DependencyObservable._setValueInternal (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:305:18) at Style.DependencyObservable._setValue (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:138:14) at onLayoutParamsChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:150:11) at Style.DependencyObservable._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:211:13) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:945:45) ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'DebugAppView.create', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 311, column: 18 Frame: function:'TemplateRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/template_ref.js', line: 64, column: 14 Frame: function:'ViewContainerRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view_container_ref.js', line: 106, column: 35 Frame: function:'ListViewComponent.onItemLoading', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/nativescript-angular/directives/list-view-comp.js', line: 71, column: 35 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/data/observable/observable.js', line: 155, column: 32 Frame: function:'ListViewAdapter.getView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/list-view/list-view.js', line: 162, column: 28

GitHub | karan1149 | 2 months ago
  1. 0

    GitHub comment 7#250567199

    GitHub | 2 months ago | karan1149
    com.tns.NativeScriptException: Calling js method getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at StylePropertyChangedHandler.ViewStyler.setNativeLayoutParamsProperty [as _applyProperty] (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/view.js:489:18) at StylePropertyChangedHandler.applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1238:14) at Style._applyStyleProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1003:25) at Style._applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:966:14) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:947:14) at Style.DependencyObservable._setValueInternal (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:305:18) at Style.DependencyObservable._setValue (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:138:14) at onLayoutParamsChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:150:11) at Style.DependencyObservable._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:211:13) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:945:45) ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'DebugAppView.create', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 311, column: 18 Frame: function:'TemplateRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/template_ref.js', line: 64, column: 14 Frame: function:'ViewContainerRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view_container_ref.js', line: 106, column: 35 Frame: function:'ListViewComponent.onItemLoading', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/nativescript-angular/directives/list-view-comp.js', line: 71, column: 35 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/data/observable/observable.js', line: 155, column: 32 Frame: function:'ListViewAdapter.getView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/list-view/list-view.js', line: 162, column: 28
  2. 0

    Crashing issue #1 in 2.4 (@Next)

    GitHub | 2 months ago | NathanaelA
    com.tns.NativeScriptException: Cannot find method 'run
  3. 0

    GitHub comment 11#250326507

    GitHub | 2 months ago | abolinhas
    com.tns.NativeScriptException: Calling js method animationsFinished failed TypeError: Cannot read property 'class' of undefined File: "/data/data/org.nativescript.articamonitor/files/app/SplashScreen.js, line: 33, column: 149 StackTrace: Frame: function:'com.viksaa.sssplash.lib.activity.AwesomeSplash.extend.animationsFinished', file:'/data/data/org.nativescript.articamonitor/files/app/SplashScreen.js', line: 33, column: 150
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Calling js method onClick failed

    GitHub | 4 weeks ago | jaffarhussain1011
    com.tns.NativeScriptException: Calling js method onClick failed TypeError: Cannot read property 'FLASH_MODE_TORCH' of undefined File: "/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight.js, line: 16, column: 42 StackTrace: Frame: function:'flashlight.on', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight.js', line: 16, column: 43 Frame: function:'flashlight.toggle', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/nativescript-flashlight/flashlight-common.js', line: 7, column: 15 Frame: function:'viewModel.toggleFlashlight', file:'/data/data/org.nativescript.jkflashlight/files/app/main-page.js', line: 21, column: 20 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/data/observable/observable.js', line: 146, column: 32 Frame: function:'Observable._emit', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/data/observable/observable.js', line: 168, column: 18 Frame: function:'_android.setOnClickListener.android.view.View.OnClickListener.onClick', file:'/data/data/org.nativescript.jkflashlight/files/app/tns_modules/ui/button/button.js', line: 33, column: 32
  6. 0

    Nativescript: Strange error after app gets deployed

    Stack Overflow | 2 weeks ago | user2094257
    com.tns.NativeScriptException: Calling js method onCreateView failed Error: File /data/data/org.nativescript.barcodescanner/files/app/.components/information/information.component.html does not exist. Resolved from: .components/information/information.component.html. File: "/data/data/org.nativescript.barcodescanner/files/app/tns_modules/nativescript-angular/resource-loader.js, line: 22, column: 12 StackTrace: Frame: function:'FileSystemResourceLoader.get', file:'/data/data/org.nativescript.barcodescanner/files/app/tns_modules/nativescript-angular/resource-loader.js', line: 22, column: 19 Frame: function:'DirectiveNormalizer._fetch', file:'/data/data/org.nativescript.barcodescanner/files/app/tns_modules/@angular/compiler/bundles/compiler.umd.js', line: 13661, column: 45 Frame: function:'DirectiveNormalizer.normalizeTemplateAsync', file:'/data/data/org.nativescript.barcodescanner/files/ And the last few lines of my command prompt: BUILD SUCCESSFUL Total time: 1 mins 9.45 secs Project successfully built Successfully deployed on device with identifier '192.168.8.101:5555'.

    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 getView failed EXCEPTION: Error in pages/groups/groups.html:5:8 ORIGINAL EXCEPTION: TypeError: Cannot set property 'width' of null ORIGINAL STACKTRACE: TypeError: Cannot set property 'width' of null at StylePropertyChangedHandler.ViewStyler.setNativeLayoutParamsProperty [as _applyProperty] (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/view.js:489:18) at StylePropertyChangedHandler.applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1238:14) at Style._applyStyleProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:1003:25) at Style._applyProperty (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:966:14) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:947:14) at Style.DependencyObservable._setValueInternal (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:305:18) at Style.DependencyObservable._setValue (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:138:14) at onLayoutParamsChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:150:11) at Style.DependencyObservable._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/core/dependency-observable.js:211:13) at Style._onPropertyChanged (/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/styling/style.js:945:45) ERROR CONTEXT: [object Object] File: "/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js, line: 365, column: 16 StackTrace: Frame: function:'DebugAppView._rethrowWithContext', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 365, column: 17 Frame: function:'DebugAppView.create', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view.js', line: 311, column: 18 Frame: function:'TemplateRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/template_ref.js', line: 64, column: 14 Frame: function:'ViewContainerRef_.createEmbeddedView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/@angular/core/src/linker/view_container_ref.js', line: 106, column: 35 Frame: function:'ListViewComponent.onItemLoading', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/nativescript-angular/directives/list-view-comp.js', line: 71, column: 35 Frame: function:'Observable.notify', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/data/observable/observable.js', line: 155, column: 32 Frame: function:'ListViewAdapter.getView', file:'/data/data/org.nativescript.squadstats/files/app/tns_modules/ui/list-view/list-view.js', line: 162, column: 28

      at com.tns.Runtime.callJSMethodNative()
    2. com.tns
      Runtime.callJSMethod
      1. com.tns.Runtime.callJSMethodNative(Native Method)
      2. com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865)
      3. com.tns.Runtime.callJSMethodImpl(Runtime.java:730)
      4. com.tns.Runtime.callJSMethod(Runtime.java:716)
      5. com.tns.Runtime.callJSMethod(Runtime.java:697)
      6. com.tns.Runtime.callJSMethod(Runtime.java:687)
      6 frames
    3. com.tns.gen
      BaseAdapter_frnal_ts_helpers_l55_c38__ListViewAdapter.getView
      1. com.tns.gen.android.widget.BaseAdapter_frnal_ts_helpers_l55_c38__ListViewAdapter.getView(android.widget.BaseAdapter.java)
      1 frame
    4. Android Platform
      ViewGroup.layout
      1. android.widget.AbsListView.obtainView(AbsListView.java:2360)
      2. android.widget.ListView.makeAndAddView(ListView.java:1972)
      3. android.widget.ListView.fillDown(ListView.java:704)
      4. android.widget.ListView.fillFromTop(ListView.java:765)
      5. android.widget.ListView.layoutChildren(ListView.java:1716)
      6. android.widget.AbsListView.onLayout(AbsListView.java:2161)
      7. android.view.View.layout(View.java:17520)
      8. android.view.ViewGroup.layout(ViewGroup.java:5612)
      8 frames
    5. org.nativescript.widgets
      GridLayout.onLayout
      1. org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
      2. org.nativescript.widgets.GridLayout.onLayout(GridLayout.java:353)
      2 frames
    6. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:17520)
      2. android.view.ViewGroup.layout(ViewGroup.java:5612)
      2 frames
    7. org.nativescript.widgets
      GridLayout.onLayout
      1. org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
      2. org.nativescript.widgets.GridLayout.onLayout(GridLayout.java:353)
      2 frames
    8. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:17520)
      2. android.view.ViewGroup.layout(ViewGroup.java:5612)
      2 frames
    9. org.nativescript.widgets
      ContentLayout.onLayout
      1. org.nativescript.widgets.CommonLayoutParams.layoutChild(CommonLayoutParams.java:189)
      2. org.nativescript.widgets.ContentLayout.onLayout(ContentLayout.java:73)
      2 frames
    10. Android Platform
      FrameLayout.onLayout
      1. android.view.View.layout(View.java:17520)
      2. android.view.ViewGroup.layout(ViewGroup.java:5612)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:261)
      5. android.view.View.layout(View.java:17520)
      6. android.view.ViewGroup.layout(ViewGroup.java:5612)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
      10. android.view.View.layout(View.java:17520)
      11. android.view.ViewGroup.layout(ViewGroup.java:5612)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:261)
      13 frames
    11. Android
      DecorView.onLayout
      1. com.android.internal.policy.DecorView.onLayout(DecorView.java:724)
      1 frame
    12. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:17520)
      2. android.view.ViewGroup.layout(ViewGroup.java:5612)
      3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2342)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2069)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:683)
      9. android.view.Choreographer.doFrame(Choreographer.java:619)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
      11. android.os.Handler.handleCallback(Handler.java:751)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:154)
      14. android.app.ActivityThread.main(ActivityThread.java:6077)
      14 frames
    13. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    14. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames