Opened 17 years ago

Closed 17 years ago

#3107 closed defect (fixed)

MythGallery segfaults on startup when OpenGL is disabled (libmyth/settings.cpp)

Reported by: herman@… Owned by: stuartm
Priority: minor Milestone: 0.21
Component: mythgallery Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

[Posted on -dev a while ago, no reactions, so made a new tickets so it wouldn't fall between cracks]

Wehn compiled with --disable-opengl, (recent SVN) mythgallery segfaults in TriggeredConfigurationGroup::load() where configStack appears to be a NULL pointer.

When enabling OpenGL on my epia, myth starts up without the segfault.

Change History (3)

comment:1 Changed 17 years ago by stuartm

Owner: changed from Isaac Richards to stuartm

comment:2 Changed 17 years ago by stuartm

Milestone: unknown0.21

Could you provide the backtrace? It might not be needed but if I'm going to look at this issue it will help to have all the necessary information available.

comment:3 Changed 17 years ago by stuartm

Resolution: fixed
Status: newclosed

(In [13277]) Fixes #3107

Fixes a segfault in mythgallery when compiled with openGL disabled.

The solution is a bit of a hack - I had three options available: 1) Fix the shortcomings of TriggeredConfigurationGroup? 2) Switch to using a standard configuration group if openGL wasn't enabled 3) Create a triggered config group with only one target and no trigger

I went with #3 as it was the simplest solution to this particular problem.

I also fixed another bug spotted by stuarta where the first time the gallery settings where accessed, the opengl options would be displayed even though SlideshowUseOpenGL was false.

Note: See TracTickets for help on using tickets.