Re: [Shotwell] 100% CPU consumption




On 2014-09-30 Tue 13:45, Jim Nelson wrote:
Could you run this with shotwell-dbg installed?  That would help.

Here it is:

  (gdb) run
  Starting program: /usr/bin/shotwell 
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  [New Thread 0x7fffe92d2700 (LWP 13759)]

  ** (shotwell:13755): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket 
/tmp/dbus-rcqX4VoAoS: Connection refused
  [New Thread 0x7fffe3fff700 (LWP 13760)]
  [New Thread 0x7fffe09dc700 (LWP 13761)]
  [New Thread 0x7fffbadf6700 (LWP 13762)]
  [New Thread 0x7fffba5f5700 (LWP 13763)]
  [New Thread 0x7fffb9df4700 (LWP 13764)]
  [New Thread 0x7fffb95f3700 (LWP 13765)]
  [New Thread 0x7fffb8770700 (LWP 13766)]
  [New Thread 0x7fffb7f6f700 (LWP 13767)]
  [Thread 0x7fffb8770700 (LWP 13766) exited]
  [New Thread 0x7fffb8770700 (LWP 13769)]
  [Thread 0x7fffb8770700 (LWP 13769) exited]
  [New Thread 0x7fffb8770700 (LWP 13789)]
  [Thread 0x7fffb8770700 (LWP 13789) exited]
  [New Thread 0x7fffb8770700 (LWP 13806)]
  [Thread 0x7fffb8770700 (LWP 13806) exited]
  [New Thread 0x7fffb8770700 (LWP 13807)]
  [New Thread 0x7fffb69d4700 (LWP 13808)]
  [New Thread 0x7fffb61d3700 (LWP 13809)]
  [New Thread 0x7fffb59d2700 (LWP 13810)]
  [New Thread 0x7fffb51d1700 (LWP 13811)]
  [Thread 0x7fffb51d1700 (LWP 13811) exited]
  [Thread 0x7fffb61d3700 (LWP 13809) exited]
  [Thread 0x7fffb69d4700 (LWP 13808) exited]
  [Thread 0x7fffb7f6f700 (LWP 13767) exited]
  [Thread 0x7fffb8770700 (LWP 13807) exited]
  ^C
  Program received signal SIGINT, Interrupt.
  0x0000000000489b86 in backing_photo_id_is_valid (self=0x11dda60) at src/db/PhotoTable.c:5039
  5039  src/db/PhotoTable.c: No such file or directory.
  (gdb) bt
  #0  0x0000000000489b86 in backing_photo_id_is_valid (self=0x11dda60) at src/db/PhotoTable.c:5039
  #1  0x00000000005d90ed in photo_get_editable_photo_row (self=0x191f4a0) at src/Photo.c:6290
  #2  0x00000000005ee060 in library_photo_source_collection_compare_backing (self=<optimized out>, 
photo=0x191f4a0, info=0x7fffb040aec0, 
      matches_master=0xd3bf60, matches_editable=0x11fb730, matches_development=0x11fb460) at src/Photo.c:23488
  #3  0x00000000005ee43b in library_photo_source_collection_fetch_by_matching_backing (self=self 
entry=0xe4f200, 
      info=info entry=0x7fffb040aec0, matches_master=matches_master entry=0xd3bf60, 
matches_editable=0x11fb730, 
      matched_development=matched_development entry=0x11fb460) at src/Photo.c:23650
  #4  0x00000000006ba1d9 in photo_monitor_real_candidates_for_unknown_file (base=<optimized out>, 
file=0x7fff88417480, info=0x7fffb040aec0, 
      _result_=0x3e64210) at src/PhotoMonitor.c:1786
  #5  0x000000000067cd78 in library_monitor_async_discovery_completed_co (_data_=0x3e640c0) at 
src/LibraryMonitor.c:2177
  #6  0x00007ffff424bce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #7  0x00007ffff424c048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #8  0x00007ffff424c0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #9  0x00007ffff47fe67c in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  #10 0x000000000068ef05 in application_start (self=self entry=0xa5a6e0, argv=argv entry=0x0, 
argv_length1=argv_length1 entry=0)
      at src/Application.c:528
  #11 0x000000000058348a in library_exec (mounts=mounts entry=0xa434c0, mounts_length1=mounts_length1 
entry=0) at src/main.c:1309
  #12 0x0000000000584369 in _vala_main (args=args entry=0x7fffffffdfe8, args_length1=args_length1 entry=1) at 
src/main.c:1981
  #13 0x0000000000474c6a in main (argc=1, argv=0x7fffffffdfe8) at src/main.c:2059

A second run:

  (gdb) run
  Starting program: /usr/bin/shotwell 
  [Thread debugging using libthread_db enabled]
  Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  [New Thread 0x7fffe92d2700 (LWP 13851)]

  ** (shotwell:13847): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket 
/tmp/dbus-rcqX4VoAoS: Connection refused
  [New Thread 0x7fffe3fff700 (LWP 13852)]
  [New Thread 0x7fffe09dc700 (LWP 13853)]
  [New Thread 0x7fffbadf6700 (LWP 13854)]
  [New Thread 0x7fffba5f5700 (LWP 13855)]
  [New Thread 0x7fffb9df4700 (LWP 13856)]
  [New Thread 0x7fffb95f3700 (LWP 13857)]
  [New Thread 0x7fffb8770700 (LWP 13858)]
  [New Thread 0x7fffb7f6f700 (LWP 13859)]
  [Thread 0x7fffb8770700 (LWP 13858) exited]
  [New Thread 0x7fffb8770700 (LWP 13861)]
  [Thread 0x7fffb8770700 (LWP 13861) exited]
  [New Thread 0x7fffb8770700 (LWP 13863)]
  [Thread 0x7fffb8770700 (LWP 13863) exited]
  [New Thread 0x7fffb8770700 (LWP 13864)]
  [Thread 0x7fffb8770700 (LWP 13864) exited]
  [New Thread 0x7fffb8770700 (LWP 13865)]
  [New Thread 0x7fffb69d4700 (LWP 13866)]
  [New Thread 0x7fffb61d3700 (LWP 13867)]
  [New Thread 0x7fffb59d2700 (LWP 13868)]
  [New Thread 0x7fffb51d1700 (LWP 13869)]
  [New Thread 0x7fffb49d0700 (LWP 13870)]
  [Thread 0x7fffb51d1700 (LWP 13869) exited]
  [Thread 0x7fffb8770700 (LWP 13865) exited]
  [Thread 0x7fffb49d0700 (LWP 13870) exited]
  [Thread 0x7fffb7f6f700 (LWP 13859) exited]
  [Thread 0x7fffb61d3700 (LWP 13867) exited]
  [Thread 0x7fffb69d4700 (LWP 13866) exited]
  ^C
  Program received signal SIGINT, Interrupt.
  0x00007ffff451fc60 in g_object_unref () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  (gdb) bt
  #0  0x00007ffff451fc60 in g_object_unref () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  #1  0x00000000005ee401 in library_photo_source_collection_fetch_by_matching_backing (self=self 
entry=0xe4f200, 
      info=info entry=0x7fff9c32b8d0, matches_master=matches_master entry=0x3ead460, 
matches_editable=0x11fbf30, 
      matched_development=matched_development entry=0x11fbc60) at src/Photo.c:23624
  #2  0x00000000006ba1d9 in photo_monitor_real_candidates_for_unknown_file (base=<optimized out>, 
file=0x7fffa8352f20, info=0x7fff9c32b8d0, 
      _result_=0x3eaa240) at src/PhotoMonitor.c:1786
  #3  0x000000000067cd78 in library_monitor_async_discovery_completed_co (_data_=0x3eaa0f0) at 
src/LibraryMonitor.c:2177
  #4  0x00007ffff424bce5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #5  0x00007ffff424c048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #6  0x00007ffff424c0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  #7  0x00007ffff47fe67c in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
  #8  0x000000000068ef05 in application_start (self=self entry=0xa5a6e0, argv=argv entry=0x0, 
argv_length1=argv_length1 entry=0)
      at src/Application.c:528
  #9  0x000000000058348a in library_exec (mounts=mounts entry=0xa434e0, mounts_length1=mounts_length1 
entry=0) at src/main.c:1309
  #10 0x0000000000584369 in _vala_main (args=args entry=0x7fffffffdfe8, args_length1=args_length1 entry=1) at 
src/main.c:1981
  #11 0x0000000000474c6a in main (argc=1, argv=0x7fffffffdfe8) at src/main.c:2059

Also, I've been fighting a nasty Shotwell regarding caching and 
Shotwell's memory spiking.  That *could* have some affect here.  
Shotwell 0.20.1 will be coming out soon with this patch, so it's worth 
seeing if that helps.

I will try it when it's ready.  Thank you!

  Titus

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]