Dne pondělí 06 Srpen 2012 18:09:49 Michael Schwendt napsal(a):
> On Mon, 06 Aug 2012 16:51:43 +0200, Vladimir Nadvornik wrote:
> > The tarball I used for creating the testing packages can be downloaded
> > here:
> >
> > http://download.opensuse.org/repositories/home:/nadvornik:/geeqie:/testin
> > g/Debian_5.0/geeqie_1.1.orig.tar.gz
>
> That one still crashes when letting an external tool/program "run wild" in
> the current working directory (such as renaming/moving files or altering
> the case of file extensions). Backtrace below.
>
> filedata.c:446: fd magick mismatch at filedata.c:2656
> **
> ERROR:filedata.c:448:file_data_ref_debug: assertion failed: (fd->magick
> == 0x12345678)
>
> I can't tell what is the culprit, just that the Fedora package uses a
> stripped-down vflist_refresh function which makes Geeqie not crash.
>
I see. Thanks for the report.
Maybe the attached patch fixes it.
If not, then I would need more information:
output of geeqie --debug 2
and some description of what the external program does.
Thanks,
Vladimir
diff --git a/src/filedata.c b/src/filedata.c
index 38ae429..c60ab7e 100644
--- a/src/filedata.c
+++ b/src/filedata.c
@@ -625,10 +625,12 @@ static void file_data_check_sidecars(const GList *basename_list)
if (!g_list_find((GList *)basename_list, sfd))
{
- printf("removing unknown %s: %s \n", parent_fd->path, sfd->path);
+ DEBUG_1("removing unknown sidecar %s: %s", parent_fd->path, sfd->path);
+ file_data_ref(sfd);
file_data_disconnect_sidecar_file(parent_fd, sfd);
file_data_send_notification(sfd, NOTIFY_REREAD);
file_data_send_notification(parent_fd, NOTIFY_REREAD);
+ file_data_unref(sfd);
}
}
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel