Comments (5)
Looks like memory corruption, but I can't reproduce it on my machine (yet). Are there any chances you could do a bisection to find which was breaking change?
The way you usually do it is: you first checkout repository by git clone. Then go to v0.3.4
and mark is as "good" by git checkout v0.3.4; git bisect good
. Then mark v0.3.6
as bad by git checkout v0.3.6; git bisect bad
. And then compile and check every proposed state, with subsequent calling of git bisect good
or git bisect bad
, depending on whenever particular state was good (no bug) or bad (with bug). In relatively small number of steps you'll find which was breaking commit was.
from libvdpau-va-gl.
The bisect points to commit e10ef7a.
As for reproducing it, it seems to only happen when switching videos in VLC player.
Here's a slightly more detailed stack trace:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff98ac3700 (LWP 7209)] 0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182 182 ../../../../src/glx/dri2_glx.c: No such file or directory. (gdb) (gdb) bt #0 0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182 #1 0x00007fffe81a6515 in MakeContextCurrent (dpy=0x7fffc613adc0, draw=85983241, read=85983241, gc_user=0x7fffc492a820) at ../../../../src/glx/glxcurrent.c:214 #2 0x00007fffa4158ff7 in do_presentation_queue_display (task=0x7fffc6162830) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:181 #3 0x00007fffa41596a9 in presentation_thread (param=0x7fffc4ecefa0) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:308 #4 0x00007ffff79a4454 in start_thread (arg=0x7fff98ac3700) at pthread_create.c:334 #5 0x00007ffff74ddedd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) bt full #0 0x00007fffe81ce5b5 in dri2_unbind_context (context=, new=0x7fffc492a820) at ../../../../src/glx/dri2_glx.c:182 pcp = psc = #1 0x00007fffe81a6515 in MakeContextCurrent (dpy=0x7fffc613adc0, draw=85983241, read=85983241, gc_user=0x7fffc492a820) at ../../../../src/glx/glxcurrent.c:214 gc = 0x7fffc492a820 oldGC = #2 0x00007fffa4158ff7 in do_presentation_queue_display (task=0x7fffc6162830) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:181 pqData = 0x7fffc4982020 deviceData = 0x7fffc6168a30 surface = 10 clip_width = 0 clip_height = 0 surfData = 0x7fffc5777df0 target_width = 0 target_height = 0 gl_error = 32767 x11_err = -971626448 __func__ = "do_presentation_queue_display" now = {tv_sec = 140735754808720, tv_nsec = 140737092783820} #3 0x00007fffa41596a9 in presentation_thread (param=0x7fffc4ecefa0) at /home/user1/libvdpau-va-gl/src/api-presentation-queue.c:308 now = {tv_sec = 1458428292, tv_nsec = 453910752} timeout = -37 task = 0x7fffc6162830 int_q = 0x7fffc533d480 #4 0x00007ffff79a4454 in start_thread (arg=0x7fff98ac3700) at pthread_create.c:334 __res = pd = 0x7fff98ac3700 now = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735754811136, -5747537729674460194, 0, 140736684701375, 3, 640, 5747602178275099614, 5747520933856494558}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = pagesize_m1 = sp = freesize = __PRETTY_FUNCTION__ = "start_thread" #5 0x00007ffff74ddedd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 No locals.
from libvdpau-va-gl.
The bisect points to commit e10ef7a.
That patch was made to make VLC work. It doesn't do any real changes, just returns some predefined values. Before that VLC just refused to use VDPAU. So the real issue was introduced somewhere else.
from libvdpau-va-gl.
Hi. I've recently changed the way GLX contexts are managed (switching to RAII concept in C++). Could you please check whenever issue is still there?
from libvdpau-va-gl.
Tested and it no longer crashes.
from libvdpau-va-gl.
Related Issues (20)
- cmake issue HOT 5
- Unable to play some video with VLC (hardware accelerator failed to decode picture) HOT 15
- Change license to MIT (expat) HOT 7
- Wrong scaling in fullscreen VLC (was: Problems playing videos in VLC) HOT 24
- Vlc using vdpau, no decoding HOT 6
- Unable to compile HOT 12
- cppcheck errors HOT 3
- Build failure with clang/libc++ on Linux HOT 2
- GPU memory leak in VLC on Intel HOT 4
- Archlinux integration !
- When playing .webm files with video-output default (VDPAU) VLC ends up consuming a lot of RAM (using lib64vdpau-va-gl1-0.4.0-1.mga6 on Intel Graphics) HOT 5
- VLC with "--vout vdpau" won't play the video of a certain .mp4 file (generates an error) HOT 11
- flash video freezes the whole system HOT 3
- VLC's memory consumption steadily increases after switching to next videos HOT 4
- Some videos cause complete system hang with 0.4.0 HOT 7
- Create lists of supported hardware and software. HOT 2
- Discrepancy in decoder capabilities reported by `vainfo` and `vdpauinfo` wrt Kabylake. HOT 1
- vdpauinfo crash with VDPAU_DRIVER=va_gl on nouveau drivers HOT 1
- hardware accelerator failed to decode picture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvdpau-va-gl.