Registered Member
|
Hi,
Latest marble master on ubuntu crashes at startup with :
Happens also after deleting /home/filnet/.local/share/marble directory. Philippe. |
Administrator
|
Are you able to install debugging symbols, and generate a backtrace using the KDE Crash Handler, or alternately - using gdb manually (if you're familiar with it - I assume you are considering core files have been activated).
Also, which distribution are you on, and which version of Marble/KDE are you using?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I am on Ubuntu 12.04 running in Virtual Box...
Marble is the from latest master (i.e. I pulled the latest changes from yesterday). And I am doing a qt only build against qt5.1.1. I'll try to salvage a valid bookmark file from my Windows install of Marble and see if Marble runs fine with it. If not I'll try to generate a backtrace of the crash. |
Registered Member
|
Dropping a valid bookmark.kml file in ~/.local/share/marble/bookmarks fixed the issue.
Marble then ran fine. Removing that file led to the same crash. Is that enough information or do you still need the backtrace? |
Administrator
|
It seems Marble fails to recover from a incorrect bookmark.kml file - so I suspect a backtrace would still be useful. I'll leave it up to the developers to comment on that however - particularly considering this is non-released code.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
A quick look at method BookmarkManager::loadFile() shows that it is probably broken with regard to handling an absent or corrupted bookmark file.
|
Administrator
|
If you're able to provide a patch, I would suggest uploading it to KDE Reviewboard for the Marble developers to review.
Reviewboard can be found at https://git.reviewboard.kde.org/
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
This is the problematic code :
If the openFile call fails and returns a null document then the rest of the code will misbehave. You can that the code contains some Todo... If I am given some directions (especially with regard to the intent behind "recover") then I can try to submiit a fix.
EDIT : I am really new to Marble but willing to learn and contribute so any help is welcome... |
KDE Developer
|
Seems to be a regression introduced in http://quickgit.kde.org/?p=marble.git&a ... a2b73cba4f
Can you change the current code
to
and see if that fixes it? |
Registered Member
|
Hi Earthwings,
The proposed code changes fixes the issue. I tested with missing and corrupted bookmark file. How do I submit a patch. I'd like to do it as a way to learn the process of submitting a patch. |
KDE Developer
|
The best way to provide patches is through https://git.reviewboard.kde.org/ like bcooksley said.
You can create the needed diffs directly with git, e.g. by calling git diff. For Windows, msys git allows doing that. Given that today the second beta is tagged I already pushed this patch now in order to have it become part of Beta 2. See also https://bugs.kde.org/show_bug.cgi?id=327444 |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]