Bug 214090 - saved file did not load correct, opened picture lost content
Summary: saved file did not load correct, opened picture lost content
Status: RESOLVED FIXED
Alias: None
Product: ktuberling
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 11:49 UTC by Christian Herzberg
Modified: 2009-11-12 00:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The first saved file which opening incorrectly. (1.19 KB, application/octet-stream)
2009-11-11 12:46 UTC, Christian Herzberg
Details
Picture saved after reoping the previous tuberling file. (101.75 KB, image/png)
2009-11-11 12:50 UTC, Christian Herzberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Herzberg 2009-11-11 11:49:48 UTC
Version:           0.6.0 (using 4.3.2 (KDE 4.3.2), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-6.slh.1-sidux-686

I can reproduce the bug:

* use Map with railroad.
* place ca. 30 Items on the map.
* save this file to harddisk.
* close the app.
* reopen it by click on saved file.

A lot of pictures had gone.

When opening the file with kate, I can see descriptions for the things aren't restored by the app.
Comment 1 Christian Herzberg 2009-11-11 12:46:03 UTC
Created attachment 38250 [details]
The first saved file which opening incorrectly.

Please refer also to the following PNG file. And compare it with viewing this file with kate. All TREE1, TREE2, PATH1 and PATH2 are missing.
Comment 2 Christian Herzberg 2009-11-11 12:50:34 UTC
Created attachment 38251 [details]
Picture saved after reoping the previous tuberling file.

I use the option "Spiel > Als Bild speichern" in the app. (In english it must be something like "Game > Save as picture")
Comment 3 Christian Herzberg 2009-11-11 12:52:13 UTC
I tried a few more times and this bug seems not so reproduceable as it looks like after the first three times.

After a while I beginn to think that it could be related, saving the files with spaces in filename. I can't confirm this.

Good luck
PS: It's an annoying error, especially for my son.
Comment 4 Albert Astals Cid 2009-11-12 00:52:28 UTC
SVN commit 1047740 by aacid:

Do not use QIODevice::Text with QDataStream, is not a good idea
BUGS: 214090


 M  +20 -5     playground.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1047740
Comment 5 Albert Astals Cid 2009-11-12 00:54:18 UTC
SVN commit 1047741 by aacid:

backport r1047740 | aacid | 2009-11-12 00:52:26 +0100 (Thu, 12 Nov 2009) | 3 lines

Do not use QIODevice::Text with QDataStream, is not a good idea
BUGS: 214090


 M  +20 -5     playground.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1047741
Comment 6 Albert Astals Cid 2009-11-12 00:55:09 UTC
Thanks for the report, unfortunately the saving of the files was not correctly done and if you had bad luck the file got corrupted. This should be fixed in KDE 4.3.4 or higher