electron icon indicating copy to clipboard operation
electron copied to clipboard

.svg images doesn't render with GoPro VR Player installed

Open johnsenpeder opened this issue 9 years ago • 8 comments

  • Electron version: 1.6.2
  • Operating system: Ubuntu 16.04

Expected behavior

Type of images in Network tab should be svg+xml and images should load normally.

Actual behavior

Type shows as goprovrplayer in Network tab and images shows as broken in app.

Broken images

How to reproduce

Use an .svg image in a <img> element. Have GoPro VR Player (http://www.kolor.com/gopro-vr-player/download/) installed then run electron app. All <img> elements using .svg files will be broken and Type of images in Network tab shows as goprovrplayer

Wrong type

johnsenpeder avatar Mar 15 '17 11:03 johnsenpeder

Can you reproduce this in Chrome 56?

enlight avatar Mar 15 '17 13:03 enlight

Is that the version used in the 1.6.3 beta of Electron? Just tested with that version and the problem persists.

As a side note, this issue is not happening in Chrome itself outside of Electron :thinking:

johnsenpeder avatar Mar 15 '17 13:03 johnsenpeder

Can you provide a minimal example to reproduce the issue, the reproduction steps aren't clear. I have goproplayer installed and ran a page that displayed svg file, there wasn't any issue. I tested on archlinux-4.10.1-1-ARCH. Thanks!

deepak1556 avatar Mar 15 '17 18:03 deepak1556

@deepak1556 Here's a basic electron app with the issue present if the GoPro VR Player is installed https://github.com/johnsenpeder/electron_test

There's nothing else to it than just launching the electron app after GoPro VR Player is installed. As soon as GoPro VR Player is uninstalled and the electron app relaunched, the image shows normally again.

johnsenpeder avatar Mar 16 '17 08:03 johnsenpeder

Ok, did some more testing, and figured out this DOES happen in Chrome too. Version 57.0.2987.98 (64-bit) However it only happens "locally" and with local svg files. So opening the index.html file in Chrome from the repo I linked also results in the same issue..

Reported bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=702208#

johnsenpeder avatar Mar 16 '17 14:03 johnsenpeder

Thanks for the test case, but unfortunately I am not able to reproduce either on MacOS or archlinux. I installed go pro player form the link provided and open the test app. The image was rendered with the right mimetype. Will defer to someone else who could reproduce the issue.

deepak1556 avatar Mar 19 '17 06:03 deepak1556

@johnsenpeder Could you update the player to the new stable version (2.3.0) ? http://www.kolor.com/gopro-vr-player/download/ This may be resolved as we change our management of MIME type association. Thank you

rlatapy-gpsw avatar May 16 '17 11:05 rlatapy-gpsw

@rlatapy-gpsw just tested with (2.3.0) and the issue is no longer there :+1:

johnsenpeder avatar May 16 '17 12:05 johnsenpeder