Nativescript not working


#1

i have installed everything for native-script from installing android sdk, emulator and making a clean native-script installation
but when i run the app using any emulator api the app is stuck on the native-script splash screen with the logo. i haven’t inserted any code yet but with the basic pre-loaded hello world app it doesn’t go through… i really need help here


#2

There is no point in opening multiple threads about the same thing. Your previous thread was ignored, as was the SO post (http://stackoverflow.com/questions/42878818/natvive-script-app-not-running-only-shows-a-splash-screen) most likely for the lack of more information about your setup.

What emulator/device are you using? API Level, architecture, is it native or Genymotion one?
What versions of nativescript, tns-android/tns-ios are you working with?
Is there any logging in the console?
What about the device’s log? - Run adb logcat in your cmd/terminal and do share if there is anything suspicious.
Have you made any changes to the application? How can we go about attempting to reproduce your problem?


#3

--------- beginning of /dev/log/system
I/BootReceiver( 420): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 2236) has died.
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=2251 uid=10051 gids={50051, 1028, 1015, 3003}

I/BootReceiver( 420): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12165) has died.
D/dalvikvm(12180): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12180 uid=10051 gids={50051, 1028, 1015, 3003}
D/Zygote ( 393): Process 12165 terminated by signal (4)
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12180): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643b8f0
D/dalvikvm(12180): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643b8f0
I/TNS.Native(12180): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12180): JNI_ONLoad
D/TNS.Native(12180): JNI_ONLoad END
D/TNS.Native(12180): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12180): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12180 (tivescript.edu1)
I/DEBUG ( 137): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 137): Build fingerprint: 'generic/vbox86p/vbox86p:4.2.2/JDQ39E/eng.genymotion.20160825.102459:userdebug/test-keys’
I/DEBUG ( 137): Revision: '0’
I/DEBUG ( 137): pid: 12180, tid: 12180, name: tivescript.edu1 >>> org.nativescript.edu1 <<<
I/DEBUG ( 137): signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 987b3a57
I/DEBUG ( 137): eax b9299988 ebx 98d5fcb4 ecx b9293988 edx b9293988
I/DEBUG ( 137): esi 55194ec1 edi b92832f8
I/DEBUG ( 137): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
I/DEBUG ( 137): eip 987b3a57 ebp bfd39748 esp bfd39720 flags 00010202
I/DEBUG ( 137):
I/DEBUG ( 137): backtrace:
I/DEBUG ( 137): #00 pc 00741a57 /data/app-lib/org.nativescript.edu1-1/libNativeScript.so
I/DEBUG ( 137): #01 pc 00741c6c /data/app-lib/org.nativescript.edu1-1/libNativeScript.so

I/DEBUG ( 137): memory map around fault addr 987b3a57:
I/DEBUG ( 137): 97f6d000-98072000
I/DEBUG ( 137): 98072000-98d35000 /data/app-lib/org.nativescript.edu1-1/libNativeScript.so
I/DEBUG ( 137): 98d35000-98d60000 /data/app-lib/org.nativescript.edu1-1/libNativeScript.so
I/BootReceiver( 420): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12180) has died.
D/dalvikvm(12195): Late-enabling CheckJNI
D/Zygote ( 393): Process 12180 terminated by signal (4)
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12195 uid=10051 gids={50051, 1028, 1015, 3003}
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12195): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643c728
D/dalvikvm(12195): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643c728
I/TNS.Native(12195): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12195): JNI_ONLoad
D/TNS.Native(12195): JNI_ONLoad END
D/TNS.Native(12195): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12195): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12195 (tivescript.edu1)
I/DEBUG ( 137): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 137): Build fingerprint: 'generic/vbox86p/vbox86p:4.2.2/JDQ39E/eng.genymotion.20160825.102459:userdebug/test-keys’
I/DEBUG ( 137): Revision: ‘0’

I/DEBUG ( 137): 98072000-98d35000 /data/app-lib/org.nativescript.edu1-1/libNativeScript.so
I/DEBUG ( 137): 98d35000-98d60000 /data/app-lib/org.nativescript.edu1-1/libNativeScript.so
I/BootReceiver( 420): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12195) has died.
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
D/dalvikvm(12210): Late-enabling CheckJNI
D/Zygote ( 393): Process 12195 terminated by signal (4)
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12210 uid=10051 gids={50051, 1028, 1015, 3003}
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12210): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643d570
D/dalvikvm(12210): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643d570
I/TNS.Native(12210): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12210): JNI_ONLoad
D/TNS.Native(12210): JNI_ONLoad END
D/TNS.Native(12210): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12210): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12210 (tivescript.edu1)
I/DEBUG ( 137): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/BootReceiver( 420): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12285) has died.
D/dalvikvm(12300): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12300 uid=10051 gids={50051, 1028, 1015, 3003}
D/Zygote ( 393): Process 12285 terminated by signal (4)
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12300): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa6438e30
D/dalvikvm(12300): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa6438e30
I/TNS.Native(12300): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12300): JNI_ONLoad
D/TNS.Native(12300): JNI_ONLoad END
D/TNS.Native(12300): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12300): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12300 (tivescript.edu1)

I/BootReceiver( 420): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12300) has died.
D/Zygote ( 393): Process 12300 terminated by signal (4)
D/dalvikvm(12315): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12315 uid=10051 gids={50051, 1028, 1015, 3003}
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12315): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa6439c70
D/dalvikvm(12315): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa6439c70
I/TNS.Native(12315): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12315): JNI_ONLoad
D/TNS.Native(12315): JNI_ONLoad END
D/TNS.Native(12315): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12315): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12315 (tivescript.edu1)
I/DEBUG ( 137): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 137): Build fingerprint: 'generic/vbox86p/vbox86p:4.2.2/JDQ39E/eng.genymotion.20160825.102459:userdebug/test-keys’
I/DEBUG ( 137): Revision: ‘0’

I/BootReceiver( 420): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12315) has died.
D/Zygote ( 393): Process 12315 terminated by signal (4)
D/dalvikvm(12330): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12330 uid=10051 gids={50051, 1028, 1015, 3003}
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12330): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643aab0
D/dalvikvm(12330): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643aab0
I/TNS.Native(12330): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12330): JNI_ONLoad
D/TNS.Native(12330): JNI_ONLoad END
D/TNS.Native(12330): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12330): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12330 (tivescript.edu1)
I/DEBUG ( 137): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 137): Build fingerprint: 'generic/vbox86p/vbox86p:4.2.2/JDQ39E/eng.genymotion.20160825.102459:userdebug/test-keys’
I/DEBUG ( 137): Revision: ‘0’

I/BootReceiver( 420): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
D/dalvikvm( 420): GC_FOR_ALLOC freed 1214K, 19% free 9649K/11876K, paused 11ms, total 12ms
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12330) has died.
D/Zygote ( 393): Process 12330 terminated by signal (4)
D/dalvikvm(12345): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12345 uid=10051 gids={50051, 1028, 1015, 3003}
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12345): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643b8f0
D/dalvikvm(12345): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643b8f0
I/TNS.Native(12345): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12345): JNI_ONLoad
D/TNS.Native(12345): JNI_ONLoad END
D/TNS.Native(12345): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12345): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12345 (tivescript.edu1)

I/BootReceiver( 420): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12345) has died.
D/dalvikvm(12360): Late-enabling CheckJNI
I/ActivityManager( 420): Start proc org.nativescript.edu1 for activity org.nativescript.edu1/com.tns.NativeScriptActivity: pid=12360 uid=10051 gids={50051, 1028, 1015, 3003}
D/Zygote ( 393): Process 12345 terminated by signal (4)
I/qtaguid ( 420): Failed write_ctrl(s 1 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 1) failed with errno -1
D/dalvikvm(12360): Trying to load lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643c730
D/dalvikvm(12360): Added shared lib /data/app-lib/org.nativescript.edu1-1/libNativeScript.so 0xa643c730
I/TNS.Native(12360): NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
D/TNS.Native(12360): JNI_ONLoad
D/TNS.Native(12360): JNI_ONLoad END
D/TNS.Native(12360): Failed to load snapshot: Cannot load library: load_library(linker.cpp:750): library “/data/app-lib/org.nativescript.edu1-1/libsnapshot.so” not found
F/libc (12360): Fatal signal 4 (SIGILL) at 0x987b3a57 (code=2), thread 12360 (tivescript.edu1)
I/ActivityManager( 420): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 420

I/BootReceiver( 420): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
I/qtaguid ( 420): Failed write_ctrl(s 0 10051) res=-1 errno=1
W/NetworkManagementSocketTagger( 420): setKernelCountSet(10051, 0) failed with errno -1
I/ActivityManager( 420): Process org.nativescript.edu1 (pid 12360) has died.
D/Zygote ( 393): Process 12360 terminated by signal (4)
W/EGL_genymotion( 602): eglSurfaceAttrib not implemented
W/InputMethodManagerService( 420): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@5334f628 attribute=null, token = android.os.BinderProxy@5330c760
D/Genyd ( 56): Received Set Clipboard
D/Genymotion( 56): Received Set Clipboard


#4

i have filtered and removed some redundant text


#5

┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.5.2 │ 2.5.3 │ Update available │
│ tns-core-modules │ 2.5.2 │ 2.5.2 │ Up to date │
│ tns-android │ 2.5.0 │ 2.5.0 │ Up to date │
│ tns-ios │ │ 2.5.0 │ Not installed │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘


#6

Update your nativescript version. Then try it again.


#7

Tried to install the 2.5.3 but it wouldn’t allow me here is the error message below

C:\Users\Techadon\Desktop\edu1>tns update 2.5.3
Platform android successfully removed.
Succsessfully removed plugin tns-core-modules
Succsessfully removed plugin tns-core-modules-widgets
Copying template files…
Installing tns-android
Could not update the project!


#8

Do this to update globally on your machine

npm install -g nativescript@latest
npm install tns-core-modules@latest --save


#9

i have just updated all is set, here is the info below, but i am still having the same problem of when the app is opened in the emulator it only shows the nativescript splash screen

C:\Users\Techadon\Documents\dev\edu1>tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.5.3 │ 2.5.3 │ Up to date │
│ tns-core-modules │ 2.5.2 │ 2.5.2 │ Up to date │
│ tns-android │ 2.5.0 │ 2.5.0 │ Up to date │
│ tns-ios │ │ 2.5.0 │ Not installed │
└──────────────────┴─────────────────┴────────────────┴───────────────┘


#10

So it’s stuck on the splash screen? That’s odd for sure.

Can you share your app.js (app.ts) file?


#11

i haven’t started writing my code yet. its below

/*
In NativeScript, the app.js file is the entry point to your application.
You can use this file to perform app-level initialization, but the primary
purpose of the file is to pass control to the app’s first module.
*/

require("./bundle-config");
var application = require(“application”);

application.start({ moduleName: “main-page” });

/*
Do not place any code after the application has been started as it will not
be executed on iOS.
*/


#12

would changing this code below change anything

var appplication = require(application);

application.mainModule = “mainPage”;

application.cssFile = “./app.css”;

application.start();