-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odroid XU4 (Android Nougat) freezing after several seconds #3612
Comments
@daniel-dennis Which USB port did you use when get the issue? Could you please try if you get the issue when configure only depth or color? Please click the wrench button at the bottom left to configure that. And if you can collect adb logcat logs that will be more helpful for the investigation. Thanks! |
@daniel-dennis Did you see the issue on USB2 or USB3 port? The default configuration of the APP should be depth1280x720@30fps which not supported by USB2. If use USB2, could you please switch to USB3 port to try again? |
This is reproducible using librealsense 2.19.2 and 2.19.0 on Android 8 and 9 - there seems to be a memory issue - this happens on a high-end Samsung Galaxy Tab S4 10.5 with 6gb ram and USB3. This happens also with just the example app and e.g. only the IR stream.
|
Any news on this? There is clearly a memory leak issue with librealsense on Android. cc @dorodnic |
I have tried the com.example.realsense_java_example using librealsense with the .aar file provided from https://dl.bintray.com/intel-realsense/librealsense/com/intel/realsense/librealsense/. I'm using a D435 camera with a similar Samsung Galaxy Tab S4 10.5 as mentioned by @fubsan above. With SDK version 2.19.2, the example app works in that it displays the depth value somewhat reliably, but showing the camera stream to a surface view causes frequent glitches/freezes as described by the original poster. Today I tested with SDK 2.21.0, and that fails immediately, spamming out of memory traces from librs (both with the unmodified com.example.realsense_java_example and a simple camera preview app based on the official examples):
The java example app also crashes on app lifecycle changes:
|
@daniel-dennis Any update from your side? Looking forward to your reply. Thanks! |
I'm using the D435 camera with FW version 05.11.06.200. I've attached 2 logcat logs; one using SDK 2.19.2 and the other using SDK 2.21.0. The app used is the capture example (only modification being that librs is used through downloaded .aar binary instead of locally built: repositories { dependencies { |
When I run the application, the following errors repeatedly appear in Logcat:
I was getting the same errors as @fubsan. I have managed to get a Realsense camera working properly on the XU4 however using the Realsense library as a backend (packaging into an aar file), and using my own frontend to display the feed (using a Unity project), so I suspect its an issue with the frame buffer not being cleared properly. |
@jonaslindgard @daniel-dennis I do see some problem with** ****thecaptureexample but not the same as yours. The problem I saw here is that the application can start and get streaming normally for the first time but no images any more after kill/stop the application. While thecamera**example works well for me. So could you please try the **camera**example first? We will further check the issue of the capture example. |
@jonaslindgard @daniel-dennis Did you get any luck with the camera example? Looking forward to your update. Thanks! |
Which example do you mean? java_example (com.example.realsense_java_example)? |
@jlindgard Sorry for any unclear in previous response. I mean the example tool in https://github.com/IntelRealSense/librealsense/tree/master/wrappers/android/tools/camera Could you please have a try? |
Thank you for the clarification and for looking into this. I tested the example camera tool with com.intel.realsense:librealsense:2.22.0@aar (instead of building native code myself). |
@jlindgard Thanks for the update! I'll try "disconnect and reconnect" here and update you later. |
@jlindgard @daniel-dennis @jonaslindgard According to PR#4237 merged to v2.24, the issue will get improved with the PR. Could you please have a try with v2.24 and share the result? Thanks! |
@jlindgard @daniel-dennis @jonaslindgard Did you get chance to try with v2.24? |
@jlindgard @daniel-dennis @jonaslindgard If no other questions, will close this ticket. |
Issue Description
I've been trying to get an RS camera to work on an Odroid XU4, first by downloading the app from the Google Play store, and also by compiling it myself. The camera feed typically works for a few seconds, but then it freezes. I've tried another XU4, the same issue happens, and the issue doesn't happen on other Android devices with the same camera.
Is there something I should look at in particular to solve this problem?
The text was updated successfully, but these errors were encountered: