After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784658 - CPU memory allocation error when trying to map a frame buffer
CPU memory allocation error when trying to map a frame buffer
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.12.0
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-07 16:52 UTC by Jeremi Wójcicki
Modified: 2018-11-03 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Log with debug level *:7 (89.52 KB, text/plain)
2017-07-10 18:16 UTC, Jeremi Wójcicki
Details
Log with debug level *:7 (1.01 MB, text/plain)
2017-07-11 06:38 UTC, Jeremi Wójcicki
Details

Description Jeremi Wójcicki 2017-07-07 16:52:01 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
Comment 1 Matthew Waters (ystreet00) 2017-07-10 03:18:27 UTC
Can you attach a GST_DEBUG=gl*:7 log here?  It contains information about the GL version/vendor and the extensions found.
Comment 2 Jeremi Wójcicki 2017-07-10 18:16:59 UTC
Created attachment 355290 [details]
Log with debug level *:7
Comment 3 Matthew Waters (ystreet00) 2017-07-11 02:41:24 UTC
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?
Comment 4 Jeremi Wójcicki 2017-07-11 06:38:57 UTC
Created attachment 355311 [details]
Log with debug level *:7

My bad, I had the info filter on and didn't realize it
Comment 5 GStreamer system administrator 2018-11-03 14:10:45 UTC
-- 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.