I've found out that some jpg makes crash your libray.
Reading some folder my app suddenly disappeared... so this should be some problem addressing the ram in your jpg routine.
after one more day of testing and some hundred of pictures tryed I was able to find a couple of other folders where my app crashed, and I've found out that actually was 1 of my filters addressing in very rare cases an address out of allocated memory.