We recently implemented CameraX to take images instead of using the device camera. Since the time we rolled out this feature in our app, we are seeing the following error. Can someone help debug this issue? I have tried googling this error but could not find any resources online.
RuntimeException lock buffer failed for format 0x21
android.media.ImageReader$SurfaceImage in nativeCreatePlanes
android.media.ImageReader$SurfaceImage in getPlanes at line 1004
androidx.camera.core.AndroidImageProxy in <init> at line 51
androidx.camera.core.AndroidImageReaderProxy in acquireNextImage at line 102
androidx.camera.core.MetadataImageReader in imageIncoming at line 322
Related
After some troubleshooting with updating the video solution to Android API 30, I have finally ended up with the following Logcat error after having upgraded Exoplayer to 2.12.0 and imported guava:30.0-jre:
[OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
E/FMQ: grantorIdx must be less than 3
E/FMQ: grantorIdx must be less than 3
E/ion: ioctl c0044901 failed with code -1: Inappropriate ioctl for device
E/FMQ: grantorIdx must be less than 3
I have also replaced SimpleExoPlayerView with PlayerView as it caused Inflating class error as described in my previous thread here: Inflating class error with Exoplayer 2.12.0 on Android
Was just wondering if anyone here had a clue for this one. Thanks in advance.
EDIT: I also receive Emulator: Process finished with exit code -1073741571 (0xC00000FD) every time I try to access the video solution. A colleague tried to replicate the error using Linux and it looked like it worked for him.
EDIT2: It looks like it is mainly due to qemu_system-x86-64.exe stops working, which is mainly a Windows-file, so I conclude with this being a bug in Windows rather than Android.
I got an error message similar to this when doing some WebRTC NDK development on Android:
2019-02-04 13:20:35.987 10214-10246/com.my.package E/rtc: #
# Fatal error in mypath/src/main/jni/src_code.cpp, line 124
# last system error: 11
# Check failed: !jni()->ExceptionCheck()
# error during Class.function_call
#
Given that the exception is buried under some layer of abstraction (WebRTC), the line that would be particular helpful here is last system error: 11. However, trying to find a description of this error has been a little tricky. After doing some Googling, I couldn't seem to find anything. Perhaps I'm looking in the wrong place for a more meaningful description of this error? Would appreciate any help! Thanks!
whatever you've tried to do ...the terminal says:
$ perror 11
OS error code 11: Resource temporarily unavailable
src_code.cpp, line 124 would be required to interpret it in a meaningful way.
most likely some trying to access some resource, which had not been opened.
I've been getting many OOM crashes in my android app (many but not all of them seem to be in Realm code:
First:
io.realm.exceptions.RealmError: Unrecoverable error. mmap() failed: Out of memory size: 872415232 offset: 0 in /Users/zaki/fromgit/realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 92
Second:
io.realm.exceptions.RealmError: Unrecoverable error. Too many open files in /Users/zaki/fromgit/realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 92
but also some even more vague memory issues:
java.lang.OutOfMemoryError: Could not allocate JNI Env
These issues seem to only happen in production and watching the memory usage in my app seems to hover pretty consistently around 10MB.
Has anyone had the Android Studio OpenGL Tracer start failing to read any trace files it produces, stating:
Failed to create the part's controls
And when the Details button is pressed:
java.lang.NumberFormatException: For input string: "
I'm getting this issue against multiple devices -- and I really need GL tracing to work here.
When I try to launch image_view a window display shows up and freezes .
The terminal output is as follows :
(image_view:29293): GLib-GObject-WARNING **: invalid uninstantiatable type '(null)' in cast to 'GtkWidget'
(image_view:29293): GLib-GObject-WARNING **: instance of invalid non-instantiatable type '(null)'
(image_view:29293): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
I'm running Ubuntu 14.04.2 release using ROS-Indigo
A similar error is reported on this site but with no fix
Also rqt_image_viewer works as given in the link above but only for uncompressed images and hence i cannot view images sent over by other camera devices for eg android-camera since they are compressed as shown below
Rebuilding OpenCV with Qt4 or Qt off in cmake fixes this problem
More info in this.
link