Giter VIP home page Giter VIP logo

Comments (5)

mans0954 avatar mans0954 commented on June 7, 2024

This only appears to be a problem if I have a camera (e.g. Nikon D3300 or Samsung Galaxy) attached to my computer via USB. If I detach all cameras then click 'Import Photos...' there isn't a problem.

from f-spot.

dkoeb avatar dkoeb commented on June 7, 2024

Hi @mans0954

Have a look at https://github.com/mono/f-spot/tree/users/dkoeb/issue-84, it should solve the issue although I'm not sure if it's a real fix or just a hack :-)

from f-spot.

decriptor avatar decriptor commented on June 7, 2024

I can't remember off the top of my head, but I thought I saw a different hack to get around gphoto 2 URIs?

from f-spot.

mans0954 avatar mans0954 commented on June 7, 2024

I've rebuilt my Debian package to include the latest commits to master, and still had this issue. I then applied 829fc9c and rebuilt and I am able to import images from my camera again, and also from my phone in "Camera (PTP)" mode. If I put the phone into "Media device (MTP)" mode then F-Spot still crashes.

f-spot --debug
** Running f-spot in Debug Mode **
** Running Mono with --debug   **
[1 Info  12:56:03.724] Initializing Mono.Addins
[1 Debug 12:56:03.813] Mono.Addins Initialization took 0.085867
[1 Debug 12:56:04.000] Db Initialization took 0.027807
[1 Debug 12:56:04.176] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:04.178] QueryToTemp took 0.002929 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:04.179] Reloading the query took 0.004309
[1 Debug 12:56:04.280] Query took 0.012875 : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 0
[1 Debug 12:56:04.321] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:04.324] QueryToTemp took 0.003315 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:04.331] Query took 0.000377 : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 0
[1 Debug 12:56:04.374] open uri = file:///home/mans0954/Photos/2017/07/30/20170730_125202.jpg
[1 Debug 12:56:04.382] Reloading the query took 0.061274
[4 Debug 12:56:04.392] PhotosPerMonth took 0.004171
[4 Debug 12:56:04.393] TimeAdaptor REAL Reload took 0.068303
[1 Debug 12:56:04.464] IndexOf took 0.000372 : SELECT ROWID AS row_id FROM photoquery_temp_0 WHERE time <= -62104064400 ORDER BY time DESC LIMIT 1
[1 Debug 12:56:04.474] Query took 0.001384 : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 100
[1 Debug 12:56:04.502] Loading image took 0.169676
[6 Debug 12:56:04.529] PhotosPerMonth took 0.004146
[6 Debug 12:56:04.529] TimeAdaptor REAL Reload took 0.204561
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.UriFormatException: Invalid URI: The hostname could not be parsed.
  at FSpot.UI.Dialog.ImportDialog.<ScanSources>m__1 () [0x0001e] in <585fe772b6034757a29c8637dbb5005e>:0 
  at GLib.Idle+IdleProxy.Handler (System.IntPtr data) [0x0003c] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.Idle+IdleProxy.Handler (System.IntPtr data) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at Gtk.Application.gtk_main () [0x00000] in <573b897a54ae4730b20442c8cd3b9a43>:0 
  at Gtk.Application.Run () [0x00000] in <573b897a54ae4730b20442c8cd3b9a43>:0 
  at FSpot.Driver.Startup () [0x00000] in <585fe772b6034757a29c8637dbb5005e>:0 
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.CleanRoomStartup+StartupInvocationHandler startup) [0x00000] in <ff140ecb2b5d46f895f413f011ff0a3f>:0 
  at FSpot.Driver.Main (System.String[] args) [0x00000] in <585fe772b6034757a29c8637dbb5005e>:0 

from f-spot.

dkoeb avatar dkoeb commented on June 7, 2024

@decriptor maybe this one?
https://github.com/mono/f-spot/blob/master/src/Clients/FSpot/FSpot/App.cs line 259

from f-spot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.