Android emulator shuts down when accessing video solution (exoplayer) - android

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.

Related

CameraX RuntimeException lock buffer failed for format 0x21

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

Android WebRTC JNI system error lookup: "last system error: 11"

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.

Every runtime error reported as SIGSEGV error in android studio

I have linked some c++ codes to android studio project and it works with no problem, but every time I encounter with a runtime error in java code, android studio won't tell me the problem precisely and reports only this error in debugger:
Signal = SIGSEGV (signal SIGSEGV: invalid address (fault address: 0xc))
What is the problem?
This primarily occurs due to one of the 2 reasons :
1) Invalid memory reference.
2) Eating up too much memory.
Now, debugging this issue can be a bit intimidating.
So start finding out points where your code may be doing INVALID MEMORY ACCESS causing SIGSEGV error or points where your code is starting too many threads.
And You have to find out if this issue is regularly occuring or 1 in 5(or so) times.
Because I encountered the problem in one project and that occured 1 in 5-6 times.

ImageView giving glib error

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

Error while compiling libhardware_legacy

Two days ago i read some guides about how to self compile cyanogenmod and i wanted to try on my phone (Galaxy 3 i5800). The phone's CPU architecture is ARMV6 so i downloaded from androidarmv6.github.io the CyanogenMod 10.2 source code and from https://github.com/sdadier/cm10.1_device_samsung_apollo the device folder. At first compilation went pretty good except some "Selected Thumb mode not supported..." errors which i fixed by adding "-marm" CFLAG to involved Android.mk . However now i'm stuck on libhwardware_legacy compilation because i keep getting the error:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/wifi/wifi.c
hardware/libhardware_legacy/wifi/wifi.c: In function 'update_ctrl_interface':
hardware/libhardware_legacy/wifi/wifi.c:473:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_start_supplicant':
hardware/libhardware_legacy/wifi/wifi.c:835:4: error: expected identifier before 'unsigned'
hardware/libhardware_legacy/wifi/wifi.c:895:20: error: dereferencing pointer to incomplete type
hardware/libhardware_legacy/wifi/wifi.c:912:26: error: dereferencing pointer to incomplete type
I searched on Google what that meant and i found lots of thread about this here on StackOverflow and on some Linux forums but none of them referred to Android, Cyanogen or libhardware_legacy. Is it a problem with my system? There is an error in the code (code here)?
Please give me some suggestion
OK! To fix the issue i removed "const prop_info *pi" and added this instead:
struct prop_info{
unsigned serial;
};
struct prop_info *pi;
but i think that if the system compiles it's not going to boot. However i will try to dump the libhardware_legacy from who compile CM10.1 successfully since the code is the same.
UPDATE: I probably found the main issue. The same error came up again and now there are 7 of them and the problem is that they are in the init so i can't workaround. However i noticed that wifi.c and property_service.c have an header in common sys/_system_properties.h probably the main error is there somewhere. Someone has a solution for this?

Categories

Resources