Matlab Crash in imread

7 views (last 30 days)
Alandor
Alandor on 22 Aug 2014
Answered: Image Analyst on 22 Aug 2014
Hey Guys, My matlab crashes each time a read a specific image ( attached ) ,
The code I run is very plain :
imread('frame593.jpg');
I followed the code with breakpoints up to rjpg8c ( mex file ) in which matlab crashes. To make it clear , when I say crash , I mean a literal crash ( "Matlab has stopped working" ) not just an error.
I have similiar images which I easily read ( you might notice that this is frame593 from a about 2000 frames which I can read )
Would love for any ideas how to solve this, Thanks, Alandor
Attached error information: Problem signature: Problem Event Name: BEX64 Application Name: MATLAB.exe Application Version: 8.3.0.0 Application Timestamp: 52e97b79 Fault Module Name: StackHash_d5e0 Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Offset: 0000000000040000 Exception Code: c0000005 Exception Data: 0000000000000008 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1037 Additional Information 1: d5e0 Additional Information 2: d5e0aee4963588b776eb29e23dc5d794 Additional Information 3: 2a50 Additional Information 4: 2a50b99e9c5249cbcf76c7f2e03cfe82
  1 Comment
Geoff Hayes
Geoff Hayes on 22 Aug 2014
Alandor - you were serious about MATLAB crashing when it reads this image! :)
The same thing happened to me when I ran the same line of code against the attached image. There were three warnings in the console
Warning: JPEG library error (8 bit), "Corrupt JPEG data: premature end of data segment"."
Warning: JPEG library error (8 bit), "Invalid JPEG file structure: two SOI markers"."
Warning: JPEG library error (8 bit), "Bogus Huffman table definition"."
Some other details (besides the stack trace and other stuff)
Bus error detected ...
Abnormal termination:
Bus error
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
Since the image is viewable in other applications (even in this browser), then you might as well open the image in one of these other applications and save it (again) as a jpeg. I was able to do so, and could view the newly saved (and named) image with
img = imread('frame593a.jpg');
Since this is reproducible, you may want to follow the advice from the error and contact The MathWorks.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 22 Aug 2014
I believe Ashish Uthama at the Mathworks is responsible for image formats. He sometimes monitors this forum or just call tech support and they may direct it to him.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!