[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 113822] kbabel crashes at startup if I select many marked files
From: Stephan Johach <lucardus () onlinehome ! de>
Date: 2006-11-05 18:17:28
Message-ID: 20061105181728.18265.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=113822
------- Additional Comments From lucardus onlinehome de 2006-11-05 19:17 -------
I can reproduce the crash here. The reason it crashes is the broken error handling of \
"invalid" project files.
The reason the project is suspected as invalid is, the Project::Project constructor \
has a call to KMimeType::findByURL() and checks for
"text/plain" but the type is "application/octet-stream". The project object
then is invalid and no initialized correctly but later on use. That leads
to the crash.
Using the command "file" on a console leads to:
hunsum leviathan:~/ kde/share/config$ file kbabel.defaultproject
kbabel.defaultproject: UTF-8 Unicode text, with very long lines
hunsum leviathan:~/ kde/share/config$ cd
hunsum leviathan:~$ file kde-de
kde-de: UTF-8 Unicode text
hunsum leviathan:~$
So the reason for the "application/octet-stream" is the very long line it seems. But \
that should not crash kbabel.
I have a patch here to load the project file even with the long line.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic