Assertion Error while running inference in tensorflow lite - java

I am trying to run an inpainting model that takes image as and input and gives image in the form of output. When I run the android application I get the following error:
2020-02-06 15:01:39.308 2143-2143/com.example.inpainting A/libc: /usr/local/google/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
2020-02-06 15:01:39.308 2143-2143/com.example.inpainting A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 2143 (mple.inpainting)
Please advise a suitable solution.

Related

react native java.lang.RuntimeException: No server to serve request

I was just getting started with react native and I encountered some problem while building the app.
Here's the error:
(Complete log)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
AAPT err(Facade for 33021040): /home/srijan/Android/build-tools/27.0.3/aapt2: 1: /home/srijan/Android/build-tools/27.0.3/aapt2: Syntax error: "(" unexpected
Slave 33021040 failed to start
java.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/srijan/Android/build-tools/27.0.3/aapt2) are not corrupted.
at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:193)
at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:250)
at java.lang.Thread.run(Thread.java:748)
AAPT err(Facade for 26937763): /home/srijan/Android/build-tools/27.0.3/aapt2: 1: /home/srijan/Android/build-tools/27.0.3/aapt2: Syntax error: "(" unexpected
Slave 26937763 failed to start
java.lang.RuntimeException: AAPT slave failed to start. Please make sure the current build tools (located at /home/srijan/Android/build-tools/27.0.3/aapt2) are not corrupted.
at com.android.builder.png.AaptProcess.waitForReadyOrFail(AaptProcess.java:193)
at com.android.builder.internal.aapt.AaptQueueThreadContext.creation(AaptQueueThreadContext.java:56)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:250)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "queued-resource-processor_2" java.util.MissingFormatArgumentException: Format specifier '%1$s'
at java.util.Formatter.format(Formatter.java:2525)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at com.android.build.gradle.internal.aapt.AaptGradleFactory$FilteringLogger.shouldDowngrade(AaptGradleFactory.java:156)
at com.android.build.gradle.internal.aapt.AaptGradleFactory$FilteringLogger.error(AaptGradleFactory.java:122)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:253)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "queued-resource-processor_1"
java.util.MissingFormatArgumentException: Format specifier '%1$s'
at java.util.Formatter.format(Formatter.java:2525)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at com.android.build.gradle.internal.aapt.AaptGradleFactory$FilteringLogger.shouldDowngrade(AaptGradleFactory.java:156)
at com.android.build.gradle.internal.aapt.AaptGradleFactory$FilteringLogger.error(AaptGradleFactory.java:122)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:253)
at java.lang.Thread.run(Thread.java:748)
> Task :app:mergeDebugResources FAILED
Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
9 actionable tasks: 1 executed, 8 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
So this is the error
Kindly help me troubleshoot this thing.
Also I tried, re-downloading build-tools 27.0.3 with the sdkmanager cli.
You are trying to run the tools on linux 32 bit, but it is not supported. The supported systems are Windows (both 32 and 64 bit), Mac OS 64 bit and Linux 64 bit.
Here's more info one the Android Studio's page: https://developer.android.com/studio/#downloads
I recommend using https://expo.io, especially if you're just starting out.
It would also fix your resources' problem; you don't need an emulator, as you can test on your actual phone with hot reloading and all the good stuff.

Unable to run app on Nexus 6

My app is working perfectly on Samsung Galaxy S4, but when I try to run it on Motorola Nexus 6 , I get runtime exception.
I have recently changed build variants: presentation:devDebug, data:debug
gradleVersion '2.14.1'
12-01 20:52:37.357 1808-1808/? E/ctxmgr: [PlaceFenceHelper]NearbyBuffer is null!
12-01 20:52:37.770 846-6904/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0
12-01 20:26:07.847 21100-21107/? E/art: Failed sending reply to debugger: Broken pipe
12-01 20:26:08.694 21100-21100/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dev.debug, PID: 21100
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider;
at com.q42.qlassified.Provider.QlassifiedCrypto.encrypt(QlassifiedCrypto.java:31)
at com.q42.qlassified.Provider.QlassifiedKeyStore.encrypt(QlassifiedKeyStore.java:177)
at com.q42.qlassified.Provider.QlassifiedKeyStore.encryptEntry(QlassifiedKeyStore.java:119)
at com.q42.qlassified.QlassifiedFactory.put(QlassifiedFactory.java:70)
at com.q42.qlassified.Qlassified.put(Qlassified.java:120)
at com..presenter.utils.QlassifiedHelper.generateEncryptionKey(QlassifiedHelper.java:38)
at com.presenter.BaseApplication.initMainRealmConfiguration(BaseApplication.java:32)
at com.presenter.AndroidApplication.onCreate(AndroidApplication.java:24)
I think you have to check the runtime permission if your device has marshmellow OS.

Error parsing configurationjava.io.FileNotFoundException:

In genymotion when i am running application then at time of installation of app in genymotion these exception is coming , I am pasting logcat error here:
Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
These is also expansion of same exception here ,
E/WifiStateMachine﹕ Failed to reload STA firmware java.lang.IllegalArgumentException: command '1 softap fwreload eth1 STA' failed with '501 1 SoftAP command has failed'
Now these are also same kind of thing ,
Desktop items loading interrupted:
java.lang.NullPointerException
at com.android.launcher2.LauncherModel$LoaderTask.checkItemPlacement(LauncherModel.java:1211)
at com.android.launcher2.LauncherModel$LoaderTask.loadWorkspace(LauncherModel.java:1368)
at com.android.launcher2.LauncherModel$LoaderTask.loadAndBindWorkspace(LauncherModel.java:1005)
at com.android.launcher2.LauncherModel$LoaderTask.run(LauncherModel.java:1111)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:61)
although it does not causes error but these happens ?
In your first exception it can be happens because of launching of your genymotion and it is getting configured with your wi-fi .
Now in your second exception because of some items of app loading of your genymotion .
and it is getting null at there .
These all exception will not put any problem in execution of your app and work .

Android Fatal signal 11 (SIGSEGV) at 0x00000050 (code=1) will trying to load an activity

i am trying to load an android activity from unity, i made all the steps from the tutorials as it supposed to by,
when i am clicking the button to open the android activity i get this err:
"Android Fatal signal 11 (SIGSEGV) at 0x00000050 (code=1)"
will trying to load an activity
any suggestions?
thank you

VM aborting with thread 1174 in Android

This is log Trace
03-07 15:08:05.084: E/dalvikvm(1174): VM aborting
03-07 15:08:05.093: A/libc(1174): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 1174 (com.company.gps)
My application was working fine with Emulator on API 16 but when I upgraded emulator device to API 17, I started to get this error but this error doesn't give any idea about the problem.
Can anybody tell me the problem here. I am making a GPS application which reads current co-ordinates of user and shows some near by places.

Categories

Resources