Skip to content
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

Android UVC backend - Out of memory error fix #4678

Merged
merged 2 commits into from
Aug 20, 2019

Conversation

matkatz
Copy link
Contributor

@matkatz matkatz commented Aug 20, 2019

This PR reverts the bulk transfer reads on the streaming endpoints back to USB requests.
The bulk transfer (ioctl(device, USBDEVFS_BULK, &ctrl)) requires memory allocation of the entire frame size which failed on some devices with "Out of memory" error.
Moving back to USB requests (ioctl(device, USBDEVFS_SUBMITURB, urb)) seems to eliminate this issue.
Removing unnecessary synchronization and memcopies from the previous implementation of the backend with USB requests equalized the performance that we had with the bulk transfer implementation.
Fix issues: #3612, #4091, #4215

- missing pointcloud filter API added.
- 3D view added to the camera app.
@matkatz matkatz closed this Aug 20, 2019
@matkatz matkatz reopened this Aug 20, 2019
@matkatz matkatz requested a review from ev-mp August 20, 2019 12:08
@ev-mp ev-mp merged commit 9c6f3e0 into IntelRealSense:development Aug 20, 2019
@matkatz matkatz deleted the android-uvc-urb branch November 5, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants