Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

3D globe error on OS X #408

Closed
forman opened this issue Sep 25, 2017 · 3 comments
Closed

3D globe error on OS X #408

forman opened this issue Sep 25, 2017 · 3 comments
Assignees
Milestone

Comments

@forman
Copy link
Member

forman commented Sep 25, 2017

From @forman on July 4, 2017 12:18

Expected behavior

3D globe should work.

Actual behavior

Get error message from CesiumWidget.

Steps to reproduce the problem

Just run Cate Desktop, zoom in/out.

Workaround

Click VIEW panel, switch from 3D Globe to 2D Map.

Specifications

Mac OS X Yosemite, 10.10.5
Cate 0.9.0-dev.2

Copied from original issue: CCI-Tools/cate-desktop#32

@forman
Copy link
Member Author

forman commented Sep 25, 2017

From https://bugs.chromium.org/p/chromium/issues/detail?id=656989 it seems that configuring Chromium to use --disable_chromium_framebuffer_multisample fixes the issue for time being.

@forman forman added this to the 1.0 milestone Sep 25, 2017
@forman forman added gui and removed in progress labels Sep 25, 2017
@forman forman added the osx label Oct 1, 2017
@forman
Copy link
Member Author

forman commented Oct 1, 2017

Problem still occurs regularly:

bildschirmfoto 2017-10-01 um 16 00 13

Seems to originate from WebGL out of memory and/or lost WebGL context:

bildschirmfoto 2017-10-01 um 16 04 28

Next time it looked like:

bildschirmfoto 2017-10-01 um 16 08 54

@forman
Copy link
Member Author

forman commented Oct 5, 2017

First thing we do in Electron's main process is now:

if (process.platform === 'darwin') {
    // Try getting around https://github.com/CCI-Tools/cate-desktop/issues/32
    // See https://electron.atom.io/docs/api/app/#appcommandlineappendswitchswitch-value
    // See https://bugs.chromium.org/p/chromium/issues/detail?id=682075&desc=2
    app.commandLine.appendSwitch('disable_chromium_framebuffer_multisample');
    app.commandLine.appendSwitch('disable_depth_texture');
}

And the problem seems to disappear, at least on OS X 10.10.5

@forman forman closed this as completed Oct 5, 2017
forman added a commit to CCI-Tools/cate-desktop that referenced this issue Oct 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant