GNOME Bugzilla – Bug 784658
CPU memory allocation error when trying to map a frame buffer
Last modified: 2018-11-03 14:10:45 UTC
On ANDROID In a pipeline: videotestsrc ! video/x-raw,format=RGB,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1 ! glupload ! appsink When trying to map a video frame in an appsink callback: gst_video_frame_map(&frame, &info, buffer, (GstMapFlags) (GST_MAP_READ | (GST_MAP_FLAG_LAST << 1)) ) Gives a following error (does not block/crash the app however): 07-07 18:43:49.530 24876-25152/org.freedesktop.gstreamer.tutorials.tutorial_3 E/GStreamer+gldebug: 0:03:59.174314367 0x7cdf48c0f0 gstgldebug.c:303:_gst_gl_debug_callback:<glcontextegl0> high: GL error from API id:150, Error:glGetQueryObjectui64vEXT::invalid query object 07-07 18:43:49.531 24876-25152/org.freedesktop.gstreamer.tutorials.tutorial_3 E/GStreamer+gldebug: 0:03:59.174688175 0x7cdf48c0f0 gstgldebug.c:303:_gst_gl_debug_callback:<glcontextegl0> high: GL error from API id:1, Error:glBeginQueryEXT::failed to allocate CPU memory 07-07 18:43:49.534 24876-25152/org.freedesktop.gstreamer.tutorials.tutorial_3 E/GStreamer+gldebug: 0:03:59.177960175 0x7cdf48c0f0 gstgldebug.c:303:_gst_gl_debug_callback:<glcontextegl0> high: GL error from API id:148, Error:glEndQueryEXT::query name is 0 Run on Samsung Galaxy S8, API 24, android 7.0 From more details refer to: http://gstreamer-devel.966125.n4.nabble.com/Memory-allocation-error-when-trying-to-map-a-video-frame-td4683716.html
Can you attach a GST_DEBUG=gl*:7 log here? It contains information about the GL version/vendor and the extensions found.
Created attachment 355290 [details] Log with debug level *:7
That unfortunately does not have the necessary information and only Info messages are printed in android's logcat? Did you forget to filter for verbose messages from logcat?
Created attachment 355311 [details] Log with debug level *:7 My bad, I had the info filter on and didn't realize it
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/580.