Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6235 closed defect (fixed)

Mythfrontend crash on return from watching recording on Via M10K Fedora 8

Reported by: terry@… Owned by: markk
Priority: minor Milestone: 0.22
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

I have just upgraded to MythTv?? from the latest SVN. On my Via M10K box, which uses XVMC-VLD. Mythfrontend crashes every time I escape from watching a recording with the following error messages:

2009-01-17 07:26:19.577 TV: Attempting to change from WatchingPreRecorded?? to None 2009-01-17 07:26:19.600 TV: Changing from WatchingPreRecorded?? to None X Error: BadValue?? (integer parameter out of range for operation) 2 Extension: 146 (Uknown extension) Minor opcode: 9 (Unknown request) Resource id: 0x800005 mythfrontend: main/renderbuffer.c:2153: mesa_reference_renderbuffer: Assertion `oldRb->Magic == 0xaabbccdd' failed. /root/.xinitrc: line 15: 2325 Aborted mythfrontend

waiting for X server to shut down viaWaitVideoCommandFire: Timeout.

The ThemePainter?? is set to qt. I have also tried "mythfrontend --reset". Previous SVN versions (2007-12-14) were fine. Any ideas on this one ?

The MythTv?? version I am using is SVN trunk at: 2009.02.02

Please include all output in bug reports. MythTV Version : 19909 MythTV Branch : trunk Library API : 0.22.20090131-2 Network Protocol : 43 QT Version : 4.4.3 Options compiled in:

linux release using_oss using_alsa using_arts using_jack using_backend using_dvb using_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

Attachments (1)

bug1.bt (2.7 KB) - added by terry@… 11 years ago.
Program output and GDB backtrace

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by terry@…

Attachment: bug1.bt added

Program output and GDB backtrace

comment:1 Changed 11 years ago by terry@…

If I disable the GLX module in xorg.conf, then the system no longer crashes. However it no longer uses xvmc-vld video output ... It seems that MythTv?? now "requires" OpenGL, at least when XvMC VLD is being used. Is this really the case ?

comment:2 Changed 11 years ago by danielk

Milestone: unknown0.22
Owner: changed from Isaac Richards to markk
Priority: criticalminor
Severity: highlow
Status: newassigned

Mark, I don't think it is safe to call MakeCurrent?(false) after deleting the glx window in delete window resources. The backtrace is missing line numbers, but can you take a quick look at this anyway?

comment:3 Changed 11 years ago by terry@…

The program crashes in glXDestroyContext(). If I define out the following in OpenGLContextGLX::DeleteWindowResources?() then mythfrontend works Ok (at least for a while).

#ifdef ZAP

if (m_glx_context) {

VERBOSE(VB_PLAYBACK, LOC + "Destroying glx context");

printf("Beam: OpenGLContextGLX::DeleteWindowResources?: 0b: %x %x\n", m_display, m_glx_context);

glXDestroyContext(m_display, m_glx_context); m_glx_context = 0;

}

#endif

Note that mythfrontend also semi-randomly crashes on this platform in the function MythScreenStack::PopScreen?().

comment:4 Changed 11 years ago by stuartm

Status: assignedinfoneeded

Fixed by [20143] ?

comment:5 Changed 11 years ago by terry@…

I have tried SVN release 2009-03-16 and the bug is no longer there. Thanks to all who fixed this :)

comment:6 Changed 11 years ago by Dibblah

Resolution: fixed
Status: infoneededclosed

comment:7 Changed 11 years ago by markk

(In [20216]) Tidy up deletion of OpenGLContextGLX window resources. Refs #6235.

Note: See TracTickets for help on using tickets.