shell icon indicating copy to clipboard operation
shell copied to clipboard

macos 10.13 issues

Open starpit opened this issue 7 years ago • 5 comments

two issues with macos 10.13:

  1. screen shows blank for a short duration, then flashes over to the actual content
  2. the terminal shows this message:
IBM Cloud Functions Shell[61208:2254181] *** WARNING: Textured window <AtomNSWindow: 0x7fefb4e978b0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.

this electron issue may cover it: https://github.com/electron/electron/issues/10559 or this? https://github.com/electron/electron/issues/11150

starpit avatar Jan 02 '18 15:01 starpit

user @thomassuedbroecker reports a related issue:

https://github.com/ibm-functions/composer/issues/25

starpit avatar Jan 23 '18 19:01 starpit

Same issue here with a simple code.

const electron = require('electron');

const { app } = electron;

app.on('ready', () => {
  console.log('App is now ready');
});

my console

App is now ready /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 4 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 5 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 6 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 7 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 8 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 9 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 10 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 11 /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-11.3.7/

hmontes avatar Feb 12 '18 13:02 hmontes

Update. If i add app.disableHardwareAcceleration() to the code, the app works fine.

const electron = require('electron');

const { app } = electron;
app.disableHardwareAcceleration();

app.on('ready', () => {
  console.log('App is now ready');
})

console

App is now ready

hmontes avatar Feb 12 '18 14:02 hmontes

thanks for digging into this @hmontes !

disableHardwareAcceleration doesn't seem to remove this message:

*** WARNING: Textured window <AtomNSWindow: 0x7fe84d46d900> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.

starpit avatar Feb 12 '18 14:02 starpit

@starpit I updated my code. You need to put that line before the app is ready.

(My mistake. Sorry)

Official doc: https://github.com/electron/electron/blob/master/docs/api/app.md#appdisablehardwareacceleration

I think the problem is related with the Macbook models. Some models have Nvidia gpu's, others (like my laptop) has an intel gpu.

hmontes avatar Feb 12 '18 14:02 hmontes