Your test project on an Intel Mac mini produced this output when run from Terminal when a save was attempted (which failed):
$ ./testjpg
DCT coefficient out of range
WARNING: TButton.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?