Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8789 closed defect (fixed)

Crash trying to launch a game

Reported by: benny@… Owned by: robertm
Priority: minor Milestone: 0.24
Component: Plugin - MythGame Version: Master Head
Severity: medium Keywords: crash
Cc: Ticket locked: no

Description

Running trunk r25688

Every time when I launch a game with MythGame? I got the following crash:

Core was generated by `/usr/bin/mythfrontend.real -l /home/mythtv/mythfrontend.log'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f0a1ea38546 in qHash(QString const&) () from /usr/lib/libQtCore.so.4
(gdb) where
#0  0x00007f0a1ea38546 in qHash(QString const&) () from /usr/lib/libQtCore.so.4
#1  0x00007f0a1ea59656 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f0a1ea5850a in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f0a1ea58f65 in QRegExp::operator=(QRegExp const&) () from /usr/lib/libQtCore.so.4
#4  0x00007f0a1ea660bf in QString::replace(QRegExp const&, QString const&) ()
   from /usr/lib/libQtCore.so.4
#5  0x00007f0a026d4164 in GameHandler::Launchgame (romdata=0x7f09e078f020, systemname=...)
    at gamehandler.cpp:871
#6  0x00007f0a026e4fc8 in GameUI::customEvent (this=0x7f09fe1e77c0, event=0x7f09e1368630)
    at gameui.cpp:675
#7  0x00007f0a1eb20da4 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#8  0x00007f0a1f31222c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQtGui.so.4
#9  0x00007f0a1f3186fb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#10 0x00007f0a1eb1106c in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/libQtCore.so.4
#11 0x00007f0a1eb137e7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQtCore.so.4
#12 0x00007f0a1eb3a9d3 in ?? () from /usr/lib/libQtCore.so.4
#13 0x00007f0a1a0f58c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#14 0x00007f0a1a0f9748 in ?? () from /lib/libglib-2.0.so.0
#15 0x00007f0a1a0f98fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#16 0x00007f0a1eb3a513 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
    () from /usr/lib/libQtCore.so.4
#17 0x00007f0a1f3c246e in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007f0a1eb0f992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
#19 0x00007f0a1eb0fd6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
#20 0x00007f0a1eb13aab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#21 0x0000000000448577 in main (argc=3, argv=0x7fff0268b8c8) at main.cpp:1444

Last line from mythfrontend

 SENDER benny-multimedia) called from UI thread
2010-08-17 22:20:50.661 MythFontProperties, Error: Unknown tag in font 'title'
			Location: /usr/share/mythtv/themes/Mythbuntu/gallery-ui.xml @ 14
			Name: ''	Type: 'shadow'
2010-08-17 22:20:57.561 MythFontProperties, Error: Unknown tag in font 'title'
			Location: /usr/share/mythtv/themes/Mythbuntu/gallery-ui.xml @ 14
			Name: ''	Type: 'shadow'
2010-08-17 22:21:01.729 MythFontProperties, Error: Unknown tag in font 'largetitle'
			Location: /usr/share/mythtv/themes/Mythbuntu/game-ui.xml @ 11
			Name: ''	Type: 'dropcolor'
2010-08-17 22:21:01.821 Error preparing query: select distinct ,system,year,genre,gamename from gamemetadata where system in ('Amiga 1200','Amiga 500+') and favorite=1 and  display = 1  order by ;
2010-08-17 22:21:01.822 Driver error was [2/1064]:
QMYSQL3: Unable to prepare statement
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system,year,genre,gamename from gamemetadata where system in ('Amiga 1200','Amig' at line 1

2010-08-17 22:21:02.640 Error preparing query: select distinct ,system,year,genre,gamename from gamemetadata where system in ('Amiga 1200','Amiga 500+') and  display = 1  order by ;
2010-08-17 22:21:02.640 Driver error was [2/1064]:
QMYSQL3: Unable to prepare statement
Database error was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system,year,genre,gamename from gamemetadata where system in ('Amiga 1200','Amig' at line 1

Change History (3)

comment:1 Changed 9 years ago by stuartm

Status: newassigned

comment:2 Changed 9 years ago by robertm

Resolution: fixed
Status: assignedclosed

(In [25793]) Hopefully prevent a segfault when the game in question doesn't have a command line/executable. It *appears* that this user has a misconfigured game library, but there's also some conditions in here where broken SQL can be generated even with a valid library and we shouldn't crash regardless. It's not related to this particular bug, but needs a cleanup eventually. Please reopen if segfault continues (and seek help on the users list if you need to know hwo to properly configure your library). Fixes #8789.

comment:3 Changed 9 years ago by stuartm

Milestone: unknown0.24
Note: See TracTickets for help on using tickets.