CPU memory allocation error when trying to map a frame buffer
Submitted by Jeremi Wójcicki
Link to original bug (#784658)
Description
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
Version: 1.12.0