Running Animation sample app (for Sceneform) on Android Emulator - android

I am trying to run the Animation sample app on my Android Emulator:
Pixel 2 API 27 Oreo
Android 8.1 x86
but the app keeps crashing.
Below are my logcat warnings: (I only copied the lines in orange)
E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008a30
glUtilsParamSize: unknown param 0x00008a30 E/native:
online_calibration_manager.cc:47 OnlineCalibrationManager: Could not
open
/data/user/0/com.google.ar.sceneform.samples.animation/cache/arcore-online-recalibration
for reading. E/NdkImageReader: AImageReader_getWindow E/native:
session.cc:1397 Invalid ray produced by view data! A/libc: Fatal
signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 6227
(mples.animation), pid 6227 (mples.animation)
I can run hello_ar_java sample on the emulator, so I guess the configurations of the emulator are correct?

Related

How to find reason for MAUI app failure on Android ([libc] Fatal signal 11 (SIGSEGV))?

I am trying to explore .NET 6 with MAUI preview 14 to run code on Windows, Android and other platforms.
While my code works fine on Windows, on Android, where I run my code using VS 2022 17.2 Preview 2 in a Pixel 5 emulator with x86_64 architecture, any attempt to instantiate the central instance of the Processor class (with e.g. var processor = new Processor(true); of a library named SaxonCS (https://www.nuget.org/packages/SaxonCS/) I use crashes the application with an error [libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
Loaded assembly: /data/data/com.companyname.mauiapp4sax1121test2/files/.__override__/Singulink.Numerics.BigDecimal.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp4sax1121test2/files/.__override__/Singulink.Numerics.BigIntegerExtensions.dll [External]
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 14860 (pp4sax1121test2), pid 14860 (pp4sax1121test2)
What does that error mean, how to find out in more detail what causes it and how to avoid it?
As for the logs, they don't seem to show more info, at least to me as the error doesn't seem to be more detailed:
Uhrzeit Gerätename Typ PID Tag Meldung
03-22 11:15:53.714 pixel_5_-_api_30 Error 14953 DEBUG signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
03-22 11:15:53.633 pixel_5_-_api_30 Error 14860 libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in tid 14860 (pp4sax1121test2), pid 14860 (pp4sax1121test2)
I filed this issue as a potential bug on MAUI in https://github.com/dotnet/maui/issues/6811.
#lambdageek from Microsoft was able to identify the bug https://github.com/dotnet/runtime/issues/76312 in the Mono runtime that caused this crash, his fix is now in the November 2022 6.0 .NET service update and in .NET 7.0 GA so using these up to date versions of .NET and MAUI under Android SaxonCS does no longer crash.

My app runs succesfuly in android studio emulator but it only shows something went wrong and no error is shown in logcat

I don't know what's the problem, I am new to android studio I follow the tutorial create the app, there is no error in code, and when I run the app it runs succescfuly and the screen only shows something went wrong, and there is nothing to display in logcat not any error message!!
Though when I test the app on my android device the logcat works and it shows me the errors, and this is what I get if anyone can help me
2022-03-25 19:26:08.569 16438-16438/? E/nApps.myweathe: Unknown bits set in runtime_flags: 0x8000
2022-03-25 19:26:09.303 16438-16438/com.TonnApps.myweather E/libc: Access denied finding property "ro.vendor.df.effect.conflict"
2022-03-25 19:26:09.729 16438-16438/com.TonnApps.myweather E/GraphicExt: Can't load libboost_ext_fwk
2022-03-25 19:26:09.729 16438-16438/com.TonnApps.myweather E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
2022-03-25 19:26:09.769 16438-16524/com.TonnApps.myweather E/gralloc: Arm Module v1.0
2022-03-25 19:26:09.770 16438-16524/com.TonnApps.myweather E/ion: ioctl c0044901 failed with code -1: Invalid argument

Twilio video call running crushes the Android app on release build - React Native

I have test the application on emulator and my android phone, the twilio video screen run without any error but after installation of release build, it crushes the app. I see following error in logcat:
2022-01-17 03:09:12.265 2521-2542/? I/ReactNativeJS: _onConnectButtonPress:
2022-01-17 03:09:12.274 2521-2521/? E/com.abcapp: No package ID ff found for ID 0xffffffff.
2022-01-17 03:09:12.302 2521-2521/? E/rtc: #
# Fatal error in: ../../../src/sdk/android/src/jni/jni_generator_helper.cc, line 28
# last system error: 22
# Check failed: !clazz.is_null()
# tvi/webrtc/WebRtcClassLoader
2022-01-17 03:09:12.303 2521-2521/? A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 2521 (com.clinicapp), pid 2521 (com.abcapp)
Although i have added the proguard-rules.pro rules too as mentioned in this post

Rust library crashing on target armv7-linux-androideabi

The code for my Dart/Flutter application communicates with my native dynamic .so library, which is very performance intensive. The library is written in Rust. It works fine with targets aarch64-linux-android and x86_64-linux-android. When I run with target armv7-linux-androideabi the following line (Dart Code) crashes.
final dylib = DynamicLibrary.open("libmyimportantlib.so");
Here is the error message: Note that no code in the library is run, the crash occurs as soon as it is loaded (or tries to load).
F/libc ( 7651): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7742 (DartWorker)
Can anyone tell me why it works on all other targets but not armv7-linux-androideabi?
I fixed the problem by downgrading the NDK version from 21 to 19. Apparently there is a problem with libc in the armv7-linux-androideabi target for version 20 and up.

Im trying to run the sample Arcore applications but the sample augmented Image app crashes when I try to run it

I'm trying to run the augmented image sample provided in the arcore sdk provided by google. The augmented image sample is an extension of the Hello_AR sample. The Hello_ar sample runs perfectly fine but when i try to run the augmented image sample it always crashes on startup. I want to try an extend it for a personal school project but i cant figure out why this is happening
I get this error:
################ ARCore Native Error ##################
BUILD_CHANGELIST:285895675
BUILD_BASELINE_CHANGELIST:280981321
################### Stack Trace Begin ################
ARCoreError: third_party/arcore/ar/core/android/implementation/android_frame_manager_gl.cc:184 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/android_frame_manager_gl.cc?g=0&l=184
ARCoreError: third_party/arcore/ar/core/frame_manager.cc:293 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/frame_manager.cc?g=0&l=293
ARCoreError: third_party/arcore/ar/core/frame_manager.cc:130 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/frame_manager.cc?g=0&l=130
ARCoreError: third_party/arcore/ar/core/session.cc:1410 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/session.cc?g=0&l=1410
ARCoreError: third_party/arcore/ar/core/c_api/session_lite_c_api.cc:51 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/c_api/session_lite_c_api.cc?g=0&l=51
################### Stack Trace End #################
E/AugmentedImageActivity: Exception on the OpenGL thread
com.google.ar.core.exceptions.FatalException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at com.google.ar.core.Session.throwExceptionFromArStatus(Session.java:143)
at com.google.ar.core.Session.nativeUpdate(Native Method)
at com.google.ar.core.Session.update(Session.java:67)
at com.google.ar.core.examples.java.augmentedimage.AugmentedImageActivity.onDrawFrame(AugmentedImageActivity.java:261)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
W/native: tracking.cc:3753 Feature descriptors not exist
box_detector.cc:180 Detection skipped due to empty features or descriptors.
E/ACameraMetadata: getConstEntry: cannot find metadata tag 65576
getConstEntry: cannot find metadata tag 65578
E/ACameraMetadata: getConstEntry: cannot find metadata tag 65576
getConstEntry: cannot find metadata tag 65578
E/EGL_emulation: tid 8075: eglMakeCurrent(1597): error 0x3009 (EGL_BAD_MATCH)
E/libEGL: eglMakeCurrent:1062 error 3009 (EGL_BAD_MATCH)
W/native: tracking.cc:3753 Feature descriptors not exist
box_detector.cc:180 Detection skipped due to empty features or descriptors.
E/ACameraMetadata: getConstEntry: cannot find metadata tag 65576
getConstEntry: cannot find metadata tag 65578
A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc917cffc in tid 8075 (GLThread 248), pid 8045 (.augmentedimage)
Process 8045 terminated.

Categories

Resources