Opened 17 years ago
Closed 17 years ago
#6963 closed defect (fixed)
Mythfronted segfaults on exitprompt on windows
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | MythTV - General | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
After pressing escape to exit mythfrontend in Windows a segfault occurs:
2009-09-01 20:33:23.687 mythfrontend version: trunk [21621] www.mythtv.org
2009-09-01 20:37:57.703 MSqlQuery::exec() "SELECT data FROM settings WHERE value = 'OverrideExitMenu' AND hostname = 'LPT-093' ;" 2009-09-01 20:37:57.703 Unable to load window 'MythPopupBox' from base 2009-09-01 20:37:57.703 Can't create Exit Prompt dialog?
Attached is also the gdb backtrace.
Attachments (5)
Change History (14)
comment:1 by , 17 years ago
It seems other pop-ups do also not display:
For instance ejecting a disc from the optical disk drive:
2009-09-01 20:49:17.125 MediaMonitor::selectDrivePopup(Select removable media to eject or insert) - One suitable device 2009-09-01 20:49:17.125 Unlocking disk Audio CD, then eject()ing 2009-09-01 20:49:17.125 Unable to load window 'MythConfirmationDialog' from base 2009-09-01 20:49:17.125 ShowOkPopup('You may safely remove Audio CD') - Couldn't Create() Dialog
Or trying to import music:
2009-09-01 20:49:35.484 Unable to load window 'MythBusyDialog' from base 2009-09-01 20:49:35.500 MSqlQuery::exec("SELECT CONCAT_WS('/', path, filename), date_modified FROM music_songs LEFT JOIN music_directories ON music_songs.directory_id=music_directories.directory_id WHERE filename NOT LIKE ('%:%')") 2009-09-01 20:49:35.500 Unable to load window 'MythProgressDialog' from base
follow-up: 3 comment:2 by , 17 years ago
Which theme? Can you verify that those window definitions appear in {theme}/base.xml or default(-wide)/base.xml? (They should for all current trunk themes).
comment:3 by , 17 years ago
Replying to stuartm:
Which theme? Can you verify that those window definitions appear in {theme}/base.xml or default(-wide)/base.xml? (They should for all current trunk themes).
G.A.N.T and no they do not seem present as base.xml is very small, have attached it.
follow-up: 5 comment:4 by , 17 years ago
What about default/base.xml? We should be falling back there. Can't you post the full log?
by , 17 years ago
| Attachment: | mythtv-frontend.log.zip added |
|---|
mythfrontend log file (zipped because of size limits)
by , 17 years ago
| Attachment: | 6963-cpsimple.patch added |
|---|
patch cpsimple to handle preexisting directory
follow-up: 7 comment:6 by , 17 years ago
Replying to Jonathan Martens <jonathan@snetram.nl>:
Replying to stuartm:
What about default/base.xml? We should be falling back there.
The dialogs seem present in there.
Patch attached...
The log shows several instances of not finding themes/default/base.xml. On windows, this usually happens when the default theme is incorrectly installed into themes/default/default instead of themes/default.
This occurs because 'make install' adds four files (from mythwelcome) to themes/default before installing the themes themselves. Once the install reaches themes, the already-existing directory causes incorrect nesting into themes/default/default.
The patch modifies the cpsimple script (which is used only in windows) to detect and workaround this situation.
comment:7 by , 17 years ago
Replying to Jeff Lu <jll544@yahoo.com>:
Patch attached...
Will try later today and report back if that fixes my problems.
The log shows several instances of not finding themes/default/base.xml. On windows, this usually happens when the default theme is incorrectly installed into themes/default/default instead of themes/default.
This occurs because 'make install' adds four files (from mythwelcome) to themes/default before installing the themes themselves. Once the install reaches themes, the already-existing directory causes incorrect nesting into themes/default/default.
Strange that I did not have these problems before then as the win32-packager script worked great in the past.
comment:8 by , 17 years ago
The patch works, all mentioned pop-up dialogs display after applying the patch and re-running make install, so it would be nice if it could be applied to trunk. Thanks in advance.

gdb backtrace