Kitt-AI/snowboy

Error when run project

Opened this issue · 0 comments

I can't run my project! This is my logcat!
06/20 00:08:56: Launching 'app' on Xiaomi POCOPHONE F1.
$ adb shell am start -n "ai.kitt.snowboy/ai.kitt.snowboy.Demo" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 7069 on device 'xiaomi-pocophone_f1-88ff05ea'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/Perf: Connecting to perf service.
I/FeatureParser: can't find beryllium.xml in assets/device_features/,it may be in /system/etc/device_features
E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
W/ai.kitt.snowboy: type=1400 audit(0.0:135061): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=22633 scontext=u:r:untrusted_app_27:s0:c36,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
E/Perf: Fail to get file list ai.kitt.snowboy
getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
Fail to get file list ai.kitt.snowboy
getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
Fail to get file list oat
getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
D/AudioManager: getStreamVolume isRestricted mode = 0
D/AudioManager: getStreamVolume isRestricted mode = 0
I/AppResCopy: snowboy directory has 3 files.
W/AppResCopy: /storage/emulated/0/snowboy// already exists!
I/AppResCopy: snowboy/alexa.umdl is file
E/AppResCopy: overriding file /storage/emulated/0/snowboy///alexa.umdl
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/snowboy/alexa.umdl: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.(FileOutputStream.java:235)
at java.io.FileOutputStream.(FileOutputStream.java:186)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:45)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:30)
at ai.kitt.snowboy.AppResCopy.copyResFromAssetsToSD(AppResCopy.java:62)
at ai.kitt.snowboy.Demo.onCreate(Demo.java:65)
at android.app.Activity.performCreate(Activity.java:7893)
at android.app.Activity.performCreate(Activity.java:7880)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7419)
at libcore.io.IoBridge.open(IoBridge.java:482)
... 21 more
I/AppResCopy: snowboy/common.res is file
E/AppResCopy: overriding file /storage/emulated/0/snowboy///common.res
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/snowboy/common.res: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.(FileOutputStream.java:235)
at java.io.FileOutputStream.(FileOutputStream.java:186)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:45)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:30)
at ai.kitt.snowboy.AppResCopy.copyResFromAssetsToSD(AppResCopy.java:62)
at ai.kitt.snowboy.Demo.onCreate(Demo.java:65)
at android.app.Activity.performCreate(Activity.java:7893)
at android.app.Activity.performCreate(Activity.java:7880)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7419)
at libcore.io.IoBridge.open(IoBridge.java:482)
... 21 more
I/AppResCopy: snowboy/ding.wav is file
E/AppResCopy: overriding file /storage/emulated/0/snowboy///ding.wav
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/snowboy/ding.wav: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.(FileOutputStream.java:235)
at java.io.FileOutputStream.(FileOutputStream.java:186)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:45)
at ai.kitt.snowboy.AppResCopy.copyFilesFromAssets(AppResCopy.java:30)
at ai.kitt.snowboy.AppResCopy.copyResFromAssetsToSD(AppResCopy.java:62)
at ai.kitt.snowboy.Demo.onCreate(Demo.java:65)
at android.app.Activity.performCreate(Activity.java:7893)
at android.app.Activity.performCreate(Activity.java:7880)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443)
W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7419)
at libcore.io.IoBridge.open(IoBridge.java:482)
... 21 more
E/AudioDataSaver: /storage/emulated/0/snowboy//recording.pcm
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7069 (ai.kitt.snowboy), pid 7069 (ai.kitt.snowboy)