After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154404 - DIA writes garbage to .dia\persistence
DIA writes garbage to .dia\persistence
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.94
Other All
: High critical
: 0.95
Assigned To: Dia maintainers
Dia maintainers
: 144997 169175 305013 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-10-03 21:12 UTC by Robin Boerdijk
Modified: 2005-10-08 19:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robin Boerdijk 2004-10-03 21:12:17 UTC
Please describe the problem:
DIA fails to start up with the following message:

file:///CA/Documentsandettings/Me/.dia/persistence:245: parser error : Input
is not proper UTF-8, indicate encoding !

(dia:568): GLib-CRITICAL **: file gutf8.c: line 1537 (g_utf8_validate): assertio
n `str != NULL' failed

The .dia\persistence file around line 245 looks like this:

  <dia:string role="diagram_tree_hidden">
    <dia:attribute name="stringvalue">
      <dia:string>#ÀúŠP%�#</dia:string>
    </dia:attribute>
  </dia:string>

Apparently, DIA wrote some garbage there.


Steps to reproduce:
Don't know. After a couple of edit cycles, this problem surfaced. I don't 
remember touching this diagram_tree_hidden at all.

Actual results:
N/A

Expected results:
N/A

Does this happen every time?
N/A

Other information:
N/A
Comment 1 Hans Breuer 2004-10-30 17:31:42 UTC
what makes you think this is a blocker? Did Dia crash or just complain
on the command line ?
Comment 2 Robin Boerdijk 2004-10-30 19:18:21 UTC
Well, as I stated, DIA failed to start up. I had to manually remove the strange 
characters from the .dia\persistence file to get DIA to startup again.
Comment 3 Hans Breuer 2004-11-05 14:52:02 UTC
Sorry for me not reading more closely and thanks for the workaround 
which helped here, too.

http://mail.gnome.org/archives/dia-list/2004-November/msg00019.html
Comment 4 Lars Clausen 2004-11-06 09:15:04 UTC
This can be reproduced by removing ~/.dia/persistence, starting Dia, selecting
Preferences, then selecting the Diagram Tree tab, then closing.  Now
~/.dia/persistence contains a strange string there.

Todays CVS has a fix for that, where we use a proper persistent list for the
hidden items instead.  
Comment 5 Lars Clausen 2004-11-13 10:21:19 UTC
*** Bug 144997 has been marked as a duplicate of this bug. ***
Comment 6 James Rimell 2004-12-07 20:34:42 UTC
Hmm, this did not work for me, a full un-install followed by manual removal of 
the .dia directory followed by a re-install did though! James
Comment 7 Lars Clausen 2005-03-05 16:01:03 UTC
*** Bug 169175 has been marked as a duplicate of this bug. ***
Comment 8 Elijah Newren 2005-05-22 00:08:42 UTC
*** Bug 305013 has been marked as a duplicate of this bug. ***
Comment 9 Hans Breuer 2005-10-08 19:39:57 UTC
Adjusting target to help finding 0.94 dups already fixed