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 716474 - Log corrupted if viewer launched after library launched
Log corrupted if viewer launched after library launched
Status: RESOLVED FIXED
Product: shotwell
Classification: Other
Component: general
unspecified
Other All
: Low normal
: ---
Assigned To: Jim Nelson
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-09 05:43 UTC by Jim Nelson
Modified: 2013-05-01 06:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Charles Lindsay 2013-11-25 21:45:17 UTC


---- Reported by jim@yorba.org 2010-06-09 10:43:00 -0700 ----

Original Redmine bug id: 2078
Original URL: http://redmine.yorba.org/issues/2078
Searchable id: yorba-bug-2078
Original author: Jim Nelson
Original description:

Because we don't want the log file to grow without bounds and we want all
instances of Shotwell to log to the same file, we have a situation where the
app will overwrite an existing file at startup. If a second app (image viewer)
launches while one is running (library mode), the file is deleted again. At
the next log write a series of NULs are written followed by the log output.

One solution would be to open-write-close the file each time. It might be
worth considering writing the log in a background thread if we go this route.



---- Additional Comments From shotwell-maint@gnome.bugs 2013-05-01 11:40:00 -0700 ----

### History

####

#1

Updated by Adam Dingle over 3 years ago

  * **Priority** deleted (<strike>_High_</strike>)

####

#2

Updated by Adam Dingle over 3 years ago

  * **Status** changed from _Open_ to _Review_
  * **Assignee** changed from _Anonymous_ to _Jim Nelson_

We discussed, and have decided to create the log file only when running in
normal (not direct-edit) mode.

####

#3

Updated by Jim Nelson over 3 years ago

  * **Status** changed from _Review_ to _5_
  * **Resolution** set to _fixed_
  * **% Done** set to _100_

####

#4

Updated by Charles Lindsay 7 months ago

  * **Status** changed from _5_ to _Fixed_



--- Bug imported by chaz@yorba.org 2013-11-25 21:46 UTC  ---

This bug was previously known as _bug_ 2078 at http://redmine.yorba.org/show_bug.cgi?id=2078

Unknown Component 
   Using default product and component set in Parameters 
Unknown version " in product shotwell. 
   Setting version to "!unspecified".
Unknown milestone "unknown in product shotwell. 
   Setting to default milestone for this product, "---".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.