Author Topic: CBFileIO.cpp:857 ERROR:could not seek to offset -16  (Read 224 times)

Offline optikalphoto

  • Newcomer
  • *
  • Posts: 3
    • View Profile
CBFileIO.cpp:857 ERROR:could not seek to offset -16
« on: Yesterday at 04:11:43 PM »
Hello,

I've been fighting with the Live Ingest feature on a MacBook Pro running macOS Sequoia 15.1.1 and Version 6 PM+ build 7212. I have Live Ingest watching a Dropbox folder and set to ingest files to a local folder on my Macbook's desktop.

If I start a Live Ingest session, no images are imported, a waiting for images dialog is as far as I get.

An identical configuration on a Windows 11 machine works flawlessly.

I've checked the log file and it shows plenty of the following:

[Sat Dec-21-2024 10:18:23.114][31444e000][37511576] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Dropbox/PM_LIVE_INGEST/AVC_5771.JPG", errno is 22 [Invalid argument].
[Sat Dec-21-2024 10:18:23.114][31444e000][37511576] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Dropbox/PM_LIVE_INGEST/AVC_5775.JPG", errno is 22 [Invalid argument].


Clearly PM is aware the files exist at the remote Dropbox location but is unable to initiate the import, the error is a bit cryptic for me.

For what it's worth, I tried to work around the issue earlier in the year by installing an FTP application and sending directly from the cameras (Nikon Z9/D5/D4s) using a hardwired LAN to USB-C LAN adaptor and having the app dump images to an FTP local folder but that failed too.

[Sat Oct-26-2024 21:57:45.037][312f13000][39798844] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Desktop/FTP_Inbound/RD2_8137.JPG", errno is 22 [Invalid argument].
[Sat Oct-26-2024 21:57:46.605][312f13000][39713808] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Desktop/FTP_Inbound/RD2_8138.JPG", errno is 22 [Invalid argument].
[Sat Oct-26-2024 21:57:50.230][312f13000][39312508] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Desktop/FTP_Inbound/RD2_8140.JPG", errno is 22 [Invalid argument].
[Sat Oct-26-2024 21:57:53.835][312f13000][41048968] CBFileIO.cpp:857 ERROR:could not seek to offset -16, whence 2 in "/Users/my_username_here/Desktop/FTP_Inbound/RD2_8142.JPG", errno is 22 [Invalid argument].


I am able to upload files to the same Dropbox account from PM6 just not live ingest. All other ingests work as expected.

I've also tried binning all of my settings and preferences, no difference.

Any help appreciated. Thank you, Karl












Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25052
    • View Profile
    • Camera Bits, Inc.
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #1 on: Yesterday at 04:34:31 PM »
Please provide some sample files, the ones that produced that error.  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your files.

Thanks,

-Kirk

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25052
    • View Profile
    • Camera Bits, Inc.
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #2 on: Yesterday at 05:33:31 PM »
Thanks.  If you use these same files with Live Ingest on macOS, you can reproduce the problem, right?

Have you given Photo Mechanic "Full Disk Access" privileges?  See: https://docs.camerabits.com/support/solutions/articles/48001152686-unable-to-ingest-or-access-folders-in-navigator

If you already have given PM Full Disk Access, then please let us know.  Holidays started after work today and extend well into next week, so it will be some time before someone has time to investigate (try to reproduce the problem on one of our systems).

-Kirk

Offline optikalphoto

  • Newcomer
  • *
  • Posts: 3
    • View Profile
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #3 on: Yesterday at 06:16:46 PM »
Thanks Kirk,

Appreciate everyone's knocking off for Xmas.

Yeah, I have full disk access enabled in Privacy, even enabled Dropbox too as a tester to no avail.

I can reproduce this issue with any image, it doesn't work for any of them, not just the ones I've just attached to this forum.

1) Drag and Drop any image file from Windows into the Dropbox folder being watched by PM's live ingest, nothing happens
2) Send any image(s) from the Shuttersnitch App on my iPad to the Dropbox folder being watched by PM's live ingest, nothing happens

Both scenarios work perfectly on a Windows 11 machine.

I'm completely new to Mac having just bought one in October this year and admittedly it's eating my brain.

On the initial install of PM6+ I copied all of my settings via the PM_Export.pmx file procedure out of my Windows Desktop copy of PM+ and imported to the Macbook Pro version and live ingest never worked for me. I'm assuming wildly here that the .pmx file is cross platform supported?

I also tried to obliterate the install on my Macbook and reinstall it as a fresh install with no preferences set and see if doing that would resolve the issue but it didn't, infuriatingly it remembered me and never asked for the product key despite having removed the com.Camerabits directory from the preferences in the Library and .plist file and rebooted but clearly I missed something.

Undeterred I installed my PM regular version thinking that might help but it never asked for a key for that version either even though I've never installed that version.

Is there a post somewhere where I can follow a process to rip out out all of the PM6 and PM6+ files and start as if I have never installed it on the Mabook? At least then I can start testing from scratch and determine if it's something that has gone awry due to my Windows exported pmx file.

Thanks mate, Karl


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25052
    • View Profile
    • Camera Bits, Inc.
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #4 on: Yesterday at 09:01:59 PM »
Karl,

Yeah, I have full disk access enabled in Privacy, even enabled Dropbox too as a tester to no avail.

I can reproduce this issue with any image, it doesn't work for any of them, not just the ones I've just attached to this forum.

1) Drag and Drop any image file from Windows into the Dropbox folder being watched by PM's live ingest, nothing happens
2) Send any image(s) from the Shuttersnitch App on my iPad to the Dropbox folder being watched by PM's live ingest, nothing happens

If you use Live Ingest from a non-Dropbox folder, does it work?  I know you're wanting to use Dropbox, but just for more information, if you were to monitor a different folder and then drag and drop files into that folder, does Live Ingest pick them up and copy them correctly?

-Kirk

Offline optikalphoto

  • Newcomer
  • *
  • Posts: 3
    • View Profile
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #5 on: Yesterday at 09:52:24 PM »
Kirk,

It works fine locally, if I watch a folder on the desktop and drop an image into it works as expected, IPTC template applied and exported to destination.

Thank you.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25052
    • View Profile
    • Camera Bits, Inc.
Re: CBFileIO.cpp:857 ERROR:could not seek to offset -16
« Reply #6 on: Yesterday at 10:59:42 PM »
Karl,

It works fine locally, if I watch a folder on the desktop and drop an image into it works as expected, IPTC template applied and exported to destination.

I think then that the issue is that in the implementation of Dropbox on macOS, the files are not really locally available.  They're 'virtual' and have to be downloaded.  On Windows, it may be different and that's why it works.

I suggest using some other method of getting files transferred to your macOS system (say run a SFTP server locally and upload files to it.)

-Kirk