Opened 9 years ago

Closed 9 years ago

#10557 closed Bug Report - General (Fixed)

MythFrontend crash when starting

Reported by: JYA Owned by:
Priority: major Milestone: 0.25
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


MythTV Version : v0.25-rc-156-g02216ca
MythTV Branch : master
Network Protocol : 72
Library API : 0.25.20120405-2
QT Version : 4.8.0
Options compiled in:
 debug use_hidesyms darwin_da using_corevideo using_backend using_bindings_php using_darwin using_firewire using_frontend using_hdhomerun using_ceton using_iptv using_libcrypto using_libdns_sd using_libxml2 using_libudf using_mheg using_opengl_video using_qtwebkit using_qtscript using_appleremote using_bindings_php using_darwin_da using_mythtranscode using_opengl using_ffmpeg_threads using_live using_mheg using_libxml2 using_libudf


Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010
0x000000010770799c in QLocale::QLocale ()
(gdb) bt
#0  0x000000010770799c in QLocale::QLocale ()
#1  0x000000010329faab in MythLocale::ToQLocale (this=0x0) at mythlocale.h:32
#2  0x000000010328983b in MythCoreContext::GetQLocale (this=0x1094221c0)
    at mythcorecontext.cpp:1289
#3  0x00000001037051d6 in MythUIClock::ParseElement (this=0x107c6ddc0, 
    filename=@0x7fff5fbfd3f8, element=@0x7fff5fbf9980, showWarnings=true)
    at mythuiclock.cpp:100
#4  0x00000001036228b5 in XMLParseBase::ParseUIType (filename=@0x7fff5fbfd3f8, 
    element=@0x7fff5fbfb490, type=@0x7fff5fbfbe28, parent=0x107c6c000, 
    screen=0x0, showWarnings=true, parentDependsMap=@0x7fff5fbfb588)
    at xmlparsebase.cpp:567
#5  0x0000000103623d78 in XMLParseBase::ParseUIType (filename=@0x7fff5fbfd3f8, 
    element=@0x7fff5fbfcc10, type=@0x7fff5fbfcbb0, parent=0x107b6d800, 
    screen=0x0, showWarnings=true, parentDependsMap=@0x7fff5fbfcb88)
    at xmlparsebase.cpp:605
#6  0x000000010362e67b in XMLParseBase::doLoad (windowname=@0x7fff5fbfd430, 
    parent=0x107b6d800, filename=@0x7fff5fbfd3f8, onlywindows=false, 
    showWarnings=true) at xmlparsebase.cpp:811
#7  0x0000000103631ce9 in XMLParseBase::LoadBaseTheme ()
    at xmlparsebase.cpp:841
#8  0x00000001036100da in MythThemeBase::Init (this=0x107b74470)
    at myththemebase.cpp:79
#9  0x0000000103611047 in MythThemeBase::MythThemeBase (this=0x107b74470)
    at myththemebase.cpp:27
#10 0x00000001035eb37c in MythMainWindow::Init (this=0x109482690)
    at mythmainwindow.cpp:1079
#11 0x0000000103a5f40f in MythContextPrivate::TempMainWindow (
    this=0x1094302c0, languagePrompt=true) at mythcontext.cpp:251
#12 0x0000000103a5f9ad in MythContextPrivate::PromptForDatabaseParams (
    this=0x1094302c0, error=@0x7fff5fbfe640) at mythcontext.cpp:492
#13 0x0000000103a62044 in MythContextPrivate::FindDatabase (this=0x1094302c0, 
    prompt=false, noPrompt=false) at mythcontext.cpp:415
#14 0x0000000103a62798 in MythContextPrivate::Init (this=0x1094302c0, 
    gui=true, promptForBackend=false, noPrompt=false, ignoreDB=false)
    at mythcontext.cpp:285
#15 0x0000000103a636e3 in MythContext::Init (this=0x10941aed0, gui=true, 
    promptForBackend=false, disableAutoDiscovery=false, ignoreDB=false)
    at mythcontext.cpp:1102
#16 0x000000010002399e in main (argc=3, argv=0x7fff5fbffa78) at main.cpp:1537

Attachments (1)

try.diff (447 bytes) - added by beirdo 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by beirdo

See also #10555

Changed 9 years ago by beirdo

Attachment: try.diff added

comment:2 Changed 9 years ago by beirdo

Try with the attached patch.

comment:3 Changed 9 years ago by JYA

This patch wouldn't compile.

diff --git a/mythtv/libs/libmythbase/mythcorecontext.cpp b/mythtv/libs/libmythba
index 93b5a8b..3940a10 100644
--- a/mythtv/libs/libmythbase/mythcorecontext.cpp
+++ b/mythtv/libs/libmythbase/mythcorecontext.cpp
@@ -1286,6 +1286,8 @@ void MythCoreContext::ReInitLocale(void)
 const QLocale MythCoreContext::GetQLocale(void) const
+    if (!d->m_locale)
+        return QLocale();
     return d->m_locale->ToQLocale();

This one fixes the problem.. InitLocale? needs the database to be configured and up and running as it retrieves the configured locale from the database. However, the issue at hand is when trying to display the screen for setting up the locale and the database. So we can't use InitLocale? yet.

comment:4 Changed 9 years ago by stuartm

Resolution: Fixed
Status: newclosed
Version: UnspecifiedMaster Head

Fixed in [4c5b039a]

Note: See TracTickets for help on using tickets.