Segfault with lastest master

Dirk Hohndel dirk at hohndel.org
Fri Jul 10 19:48:32 PDT 2015


On Sat, Jul 11, 2015 at 12:18:12PM +1000, Rick Walsh wrote:
> >
> > Yes, the file is there.  I added #define DEBUG 1 to MarblePath.cpp, re-ran
> > make in marble-source/build then again in subsurface/build.
> >
> > Is this the output you're interested in?
> >  (gdb) run
> > Starting program: /home/rick/build/subsurface/build/subsurface
> > [Thread debugging using libthread_db enabled]
> > Using host libthread_db library "/lib64/libthread_db.so.1".
> > Map theme file does not exist: ""
> > QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
> > such file or directory
> > [New Thread 0x7fff81bf9700 (LWP 19105)]
> > [Thread 0x7fff81bf9700 (LWP 19105) exited]
> >
> >
> Ah, I tell a lie.  I can't find MarblePath.cpp.  That output was after
> adding the debug line to MarbleMap.cpp, but perhaps my inability to read a
> file name could have been useful.
> Just a stab in the dark, but are we getting to here in MarbleMap.cpp?  From
> line 709:

Nope. MarbleDirs.cpp

And actually why don't you use this patch...

diff --git a/src/lib/marble/MarbleDirs.cpp b/src/lib/marble/MarbleDirs.cpp
index 014ab0582d0b..734107f6536e 100644
--- a/src/lib/marble/MarbleDirs.cpp
+++ b/src/lib/marble/MarbleDirs.cpp
@@ -68,6 +68,7 @@ QString MarbleDirs::path( const QString& relativePath )
     }
     QString result = QDir( fullpath ).canonicalPath();
     if (result.isEmpty()) {
+	    qDebug() << fullpath << "result" << result;
 	    if (relativePath.contains("bitmaps") && relativePath != "bitmaps/empty.png")
 		    return path("bitmaps/empty.png");
 #if defined(DEBUG)


More information about the subsurface mailing list