VMware Communities
Octovon
Contributor
Contributor

Preview hangs when opening JPG images. No problem with GIF or PNG images.

Fusion Pro 11.0.2

Mojave 10.14.1 or 10.14.2 guest on Mojave 10.14.2 host

The process "Preview" hangs when opening JPG images, but works fine for GIF or PNG images.

Finder's "quick look" behavior is the same (when attempting to preview the file by pressing the space bar with the file selected).  This appears to be handled by the process "QuickLookUIService (Finder)".  Running "qlmanage -p <file>.jpg" similarly fails.

In Finder's Gallery View, the JPG thumbnail appears normally.

The problem exists regardless of whether VMware Tools are installed.

What makes one file type different than others?

Reverting to an earlier virtual hardware version does not help (I tried available values back to version 11).

Here is the end of the stack trace that shows JPG-specific calls waiting on a mutex on Intel graphics hardware that never unblocks.

...

  35  IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 101 (ImageIO + 100125) [0x7fff4ebc871d]

  35  AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 1708 (ImageIO + 104576) [0x7fff4ebc9880]

  35  AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec*, CGImageProvider*, CGSize, bool*) + 85 (ImageIO + 926615) [0x7fff4ec92397]

  35  AppleJPEGReadPlugin::createImageBlockSetWithHardware_intel(InfoRec*, CGImageProvider*, __CFData const*, CGSize, bool*) + 343 (ImageIO + 531227) [0x7fff4ec31b1b]

  35  AppleJPEGReadPlugin::createIOSurfaceWithHardware_intel(CGImageProvider*, __CFData const*, unsigned int, VPA_HWJPEGDecodeSession*, __IOSurface**) + 74 (ImageIO + 527770) [0x7fff4ec30d9a]

  35  AppleJPEGReadPlugin::acquireSession() + 24 (ImageIO + 526358) [0x7fff4ec30816]

  35  _pthread_mutex_firstfit_lock_slow + 226 (libsystem_pthread.dylib + 5303) [0x7fff794ab4b7]

  35  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 15990) [0x7fff793f5e76]

*35  psynch_mtxcontinue + 0 (pthread + 10095) [0xffffff7f8204076f]

Any ideas?

Message was edited by: Octovon

Reply
0 Kudos
5 Replies
RickShu
VMware Employee
VMware Employee

Hi Octovon,

Thanks for reporting the problem, our development team is now working on the issue, truly sorry for any inconvenience caused.

Regards,

-Rick

Reply
0 Kudos
Octovon
Contributor
Contributor

Thanks.  I opened SR 18014867412 on this issue.

Reply
0 Kudos
curtosis
Contributor
Contributor

If it helps, I'm having this same issue. I've tried installing and configuring just about every which way, and QuickLook and Preview just hang, only on JPG images.

JPGs load fine from a local html file in Safari -- though Safari does have some ugly visual artifacts on the tabs (attached). Could point to a related problem with the Metal renderer?

Reply
0 Kudos
Octovon
Contributor
Contributor

VMware says they are not able to resolve this issue:

  We do not have a

  real graphics driver on macOS and what you are seeing here is

  that there is a bug in the software fallback path in macOS

  itself. There is nothing we can do to fix this, except for

  work with Apple.

  These kind of issues are sadly getting more common especially

  since the software fallback we depend on is the Apple OpenGL

  software renderer. Though on a native Mac, Metal is required

  so all of the application are using Metal making this a very

  poorly testing path inside Apple. But there is nothing we can

  do to get real OpenGL or Metal support in the guest without a

  lot of help from Apple.

  But however, we would like to know if JPEG worked on any of

  the older environments that you had, if so please let us know

  the details. If there are any more concerns or queries, please

  feel free to reply, we will be eager to assist you further.

I replied that this problem did not present until I moved to Fusion 11 and Mojave (as both host and guest).

Reply
0 Kudos
curtosis
Contributor
Contributor

I hadn't tried it on an older environment -- I was testing it out before buying. I haven't tried it with a High Sierra guest; I'm probably stuck on Mojave on the host though. I'll try that out, but it will depend on which side of the driver is wrong.

Reply
0 Kudos