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 738245 - Shotwell crashes on startup (crash in g_type_create_instance)
Shotwell crashes on startup (crash in g_type_create_instance)
Status: RESOLVED INCOMPLETE
Product: shotwell
Classification: Other
Component: import
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Shotwell Maintainers
Shotwell Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-09 16:32 UTC by tudor
Modified: 2017-02-08 11:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdb backtrace (5.23 KB, text/plain)
2014-10-09 16:33 UTC, tudor
Details
gdb backtrace (27.17 KB, text/plain)
2014-10-24 17:26 UTC, tudor
Details

Description tudor 2014-10-09 16:32:42 UTC
Shotwell tries to find new files and crashes then. If I click on don't monitor new files in the setting dialog, it doesn't crash any more.
Comment 1 tudor 2014-10-09 16:33:33 UTC
Created attachment 288146 [details]
gdb backtrace
Comment 2 Jim Nelson 2014-10-09 19:03:25 UTC
Could you try removing the gstreamer-0.10-good package and trying again?

http://kaosx.us/phpBB3/viewtopic.php?f=10&t=358
Comment 3 tudor 2014-10-09 19:43:26 UTC
Removing gstreamer-0.10-good package on arch linux didn't work. However, it crashed complaining about the file /usr/lib/gstreamer-1.0/libgstavi.so, which belongs to gst-plugins-good. Removing gst-plugins-good solves the problem. However, it also removes totem, gnome-contacts, etc.
Comment 4 Jim Nelson 2014-10-23 21:01:24 UTC
I feel like I need to hand this off to the GStreamer guys.  It sounds like gst-plugins-good is doing something at initialization time causing a crash in GType.
Comment 5 Sebastian Dröge (slomo) 2014-10-24 07:17:25 UTC
"VideoImportParams" is not defined by GStreamer anywhere but by shotwell in src/VideoSupport.vala. That warning would be a bug in shotwell or vala and is completely unrelated to GStreamer.
The backtrace here also contains nothing at all about GStreamer.


You say that there was another crash when you removed the GStreamer 1.x AVI plugin. Can you provide a new backtrace for that?
Comment 6 tudor 2014-10-24 17:05:01 UTC
It works now on Arch Linux with gst-plugins-good installed since they rebuilt the package so I can't test it anymore.

After removing the gst-plugins-good package it worked on Arch. Then I upgraded and gnome 3.14.1 was installed. Shotwell didn't work any more. Then they rebuilt the shotwell package and it works now again even with gst-plugins-good installed.

https://bugs.archlinux.org/task/42473
https://bugs.archlinux.org/task/42460
Comment 7 Tim-Philipp Müller 2014-10-24 17:16:59 UTC
Thanks for testing and confirming it's no longer an issue.
Comment 8 tudor 2014-10-24 17:26:21 UTC
Created attachment 289288 [details]
gdb backtrace
Comment 9 tudor 2014-10-24 17:26:56 UTC
It crashes again after adding new photos...
Comment 10 Tim-Philipp Müller 2014-10-24 18:01:26 UTC
Could you please install debugging symbols for libglib, libgstreamer, gst-plugins-base and gst-plugins-good? (There should be -dbg packages on debian/ubuntu), and then make a new stack trace?

I also note that there are quite a few other non-gstreamer criticals before this.
Comment 11 Jim Nelson 2014-10-24 18:40:27 UTC
Ah, wait, sorry.  I was confusing the GType init error with something we've seen in the past related to GStreamer at initialization.

It may be two different problems here.  The first trace appears to be from a fundamental type being registered twice in Shotwell.  It's probably a thread safety issue.

The second trace tudor submitted looks like something entirely different.

Regarding the critical GdkPixbuf warnings in the second trace, those are coming off the Shotwell video thumbnailer, a process spawned for each video imported, and so the main process' state is unaffected by those warnings.  I'll look into the warnings.

Tim, if you agree, we can break these out into two tickets.
Comment 12 Tim-Philipp Müller 2014-10-24 18:57:03 UTC
Sure, and there's clearly a problem in avidemux as well, it's just that we need a stack trace to get a better idea what the issue might be.
Comment 13 Jim Nelson 2014-10-24 20:52:16 UTC
Ok, I'm converting this back to a Shotwell bug.  The new bug report (w/ originals stack trace) is at bug #739146.

tudor, please install the debug symbols Tim-Philipp requested and post a new stack trace there.  This ticket is for the original crash you reported, which is a GType initialization bug.
Comment 14 Jim Nelson 2014-10-24 20:53:33 UTC
tudor, what version of Shotwell are you running?
Comment 15 tudor 2014-10-25 09:07:55 UTC
Which packages would this be on Arch Linux for the debugging symbols? I have the latest package of shotwell.
Comment 16 Jim Nelson 2014-10-28 18:51:30 UTC
I couldn't tell you the Arch Linux package names.  On Debian/Ubuntu it's shotwell-dbg.  I would think Arch would use a similar naming scheme.
Comment 17 Sebastian Dröge (slomo) 2014-10-28 19:28:37 UTC
Arch has no debug packages, you'll have to rebuild the relevant packages yourself. See https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces
Comment 18 Jens Georg 2017-02-08 11:35:08 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!