Author Topic: Premature end of JPEG file (NRFBasicJPEG.cpp:308 & 309)  (Read 124 times)

Offline Robert Edwards Media

  • Member
  • **
  • Posts: 58
    • View Profile
    • Robert Edwards Media
Premature end of JPEG file (NRFBasicJPEG.cpp:308 & 309)
« on: March 06, 2026, 04:57:25 PM »
Hi Camera Bits, I’m seeing errors like below in PM.log when transmitting some JPGs via FTP File Uploader.  No error messages are thrown about file corruption by the upstream apps in my workflow.  In-camera JPGs are downloaded with FileZilla Pro, edited in Capture One and exported as JPGs, then captioned-keyworded in PM and transmitted via File Uploader.

Capture One support told me that they don't write ancillary information into JPGs after the EOF marker.  Could you help me better understand the error dialog?

Error Messages:
NRFBasicJPEG.cpp:308 While processing file: [Path\Filename] Premature end of JPEG file
NRFBasicJPEG.cpp:309 While processing file: [Path\Filename] Premature end of JPEG file

if it's worth anything, "309" errors are more common than "308" errors.

OS & Applications:
Windows 11 Pro 25H2
FileZilla Pro 3.69.6
PhotoMechanic 2026.2 Build 9034
Capture One Pro Build 16.7.4.3394

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1297
    • View Profile
Re: Premature end of JPEG file (NRFBasicJPEG.cpp:308 & 309)
« Reply #1 on: March 06, 2026, 05:05:43 PM »
We're going to need a sample file and a screenshot of your FTP uploader settings.

Offline Robert Edwards Media

  • Member
  • **
  • Posts: 58
    • View Profile
    • Robert Edwards Media
Re: Premature end of JPEG file (NRFBasicJPEG.cpp:308 & 309)
« Reply #2 on: March 06, 2026, 06:35:40 PM »
Hi Andrew, please disregard.  I mis-read my PM.log.  All the instances of this error are from inbound FTP to me from remote photographers where the venue network connection dropped mid-transmission, resulting in my receipt of a truncated file.  The error appears to be from when PM tries to display the preview in the Contact Sheet. 

There is no issue with my FTP'ing other images outbound. 

Thank you for the quick response!  Best, Rob