macos 10.13 issues
two issues with macos 10.13:
- screen shows blank for a short duration, then flashes over to the actual content
- 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
user @thomassuedbroecker reports a related issue:
https://github.com/ibm-functions/composer/issues/25
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/
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
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 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.