Message Boards Message Boards


System dialog to load image crashing on Mac OS X

Posted 10 months ago
1 Reply
0 Total Likes

The basic attempt to have a button prompt a standard system dialog box to select a file crashes on me only when selecting an image (PNG or JPG). I removed all filters and stripped logic to a simple SystemDialogInput call and the crash is repeatable. The interesting thing is that I can pretty much select through the displayed file chooser any other type of file (PDF, XML, TXT, NB,, JSON, etc.) ranging from few KB to GB in size as expected. It's only when selecting a PNG or JPG (didn't try GIF or other image formats) that the file chooser crashes and brings down Mathematica as well. After some time, I get a crash report with a "Reopen" button for Mathematica. I'm running v11.2.0.0 on Mac OS 10.13.2.

The "simple" line of code I'm attempting is:

Button["Image...", SystemDialogInput["FileOpen"], Method -> "Queued"]

I've also attached a sample JPG image I'm attempting to open although it seems any PNG or JPG causes the same behavior. From my observation, it appears when the file chooser tries to render a preview / thumbnail of the image, it brings down everything. I've also been able to narrow the crash down to only happen when the file chooser navigation is set to column view.

Column View

The steps to reproduce are:

  1. Execute code snippet above
  2. Click "Image..." button
  3. Observe the file chooser
  4. Set view preference to column view (see image above)
  5. Navigate to the provided "vetmed1.JPG" image
  6. Select the image file
  7. Experience crash


I don't believe I'm doing anything wrong or out-of-the-ordinary here, but I'd be happy to learn otherwise. For the time being, I will change my settings to show files in list view (vs column view).




I got the same behavior in 11.2 -- it crashes.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract