GLScene applications or adding a TGLSceneViewer to an application in Lazarus produces a crash on one of my iMac (MacOS High Sierra, 10.13.5 ). Crashes means immediate logout, no delay.
Strangely, the application and TGLSceneViewer are working normally on my MacBookAir. The iMac uses AMD Radeon R9 M390 2048 Mo and the MacBookAir uses Intel HD Graphics 5000. Otherwise the two machines run exactly the same OS. As much as I can tell the Lazarus and GLScene are the same. Any idea where it comes from?
Any idea where to look for any log explaining the logout?
Ciao,
Gilles Marcou
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Gilles, i've installed Lazarus 32 bit with Carbon (64 bit with QT5 not working) It's seem have a problem with the initialization of OpenGL context. When i put a GLSceneViewer MacOS High Sierra crash and automatically close my session. I've tried OpenGL package installed from Online Package Manager and it work. I'll make some research in codes to see what's the hell.
Best regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hum' i've tried the Openglcontrol-demo from menu Tools --> Example project it doesn't work at all to. Perhaps the problems come from OpenGL drivers. I'll do some search
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One of the changes in High Sierra is that the WindowServer now uses Apple's Metal API instead of OpenGL. That's a major change in the component that's directly responsible for managing graphics buffers and redrawing the screen whenever something changes, and major changes tend to introduce bugs. I suspect that this problem may be a bug in the WindowServer's handling of the swap chain when KSP asks it to display a new frame.
It seems many applications using OpenGL have problems with High Sierra
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your investigations Jerome. I was convinced it is a bug in the Mac High Siera NVidia driver. The problem is reproduceable on all the machines with NVidia and disappears on the machines relying on Intel chips. As I understood the problem appears with High Sierra and will be solved when a proper driver will become available. What I don't understand is why you need to migrate to OpenGL Core? I'm sorry, I have no time to go deep enough into your citations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
just took a deeper look at the OpenGL Core. I understand now why you were talking about a huge update for GLScene. I also think that would be worth the effort. Do you have some scheduled plan for migration? Would it be useful to contribute? How to contribute?
Ciao,
Gilles Marcou
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Gilles i've began some code sometime ago with nice results see https://sourceforge.net/p/glscene/discussion/93605/thread/423d2ca0/#ad55 .
I removed it from Branch beacause not stable. I always have some code
But i no scheduled plan. I haven't enought free time.
Yes it will be useful if you can help me. I'll contact you soon in private, it will be more easy to speak in french.
Thanks
Jérôme
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
GLScene applications or adding a TGLSceneViewer to an application in Lazarus produces a crash on one of my iMac (MacOS High Sierra, 10.13.5 ). Crashes means immediate logout, no delay.
Strangely, the application and TGLSceneViewer are working normally on my MacBookAir. The iMac uses AMD Radeon R9 M390 2048 Mo and the MacBookAir uses Intel HD Graphics 5000. Otherwise the two machines run exactly the same OS. As much as I can tell the Lazarus and GLScene are the same. Any idea where it comes from?
Any idea where to look for any log explaining the logout?
Ciao,
Gilles Marcou
Hi Gilles,
i'll can check. Since a week i have an iMac with MacOS High Sierra. I'll make some some test this week-end if i have enought free time.
Thanks
Jérome
Hi Gilles, i've installed Lazarus 32 bit with Carbon (64 bit with QT5 not working) It's seem have a problem with the initialization of OpenGL context. When i put a GLSceneViewer MacOS High Sierra crash and automatically close my session. I've tried OpenGL package installed from Online Package Manager and it work. I'll make some research in codes to see what's the hell.
Best regards
Hum' i've tried the Openglcontrol-demo from menu Tools --> Example project it doesn't work at all to. Perhaps the problems come from OpenGL drivers. I'll do some search
Ok the first clue i found :
It seems many applications using OpenGL have problems with High Sierra
Ok according some informations it seem GLScene need a very big update
https://stackoverflow.com/questions/49802367/lwjgl-3-1-6-opengl-4-1-crash-on-macos-high-sierra
https://developer.apple.com/opengl/
I'll need to work for convertir All Legacy OpenGL code to OpenGL Core. It's seem OpenGL version <3.2 is now unsupported under High Sierra
other info for NVidia https://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-06012018/?page=7
EDIT I've just found this : https://www.alora.io/forums/topic/28972-how-to-get-hd-opengl-working-on-mac-osx-high-sierra/ but don't if we can apply this trick ??????
Last edit: Jerome.D (BeanzMaster) 2018-06-16
Thanks for your investigations Jerome. I was convinced it is a bug in the Mac High Siera NVidia driver. The problem is reproduceable on all the machines with NVidia and disappears on the machines relying on Intel chips. As I understood the problem appears with High Sierra and will be solved when a proper driver will become available. What I don't understand is why you need to migrate to OpenGL Core? I'm sorry, I have no time to go deep enough into your citations.
Hi Jerome,
just took a deeper look at the OpenGL Core. I understand now why you were talking about a huge update for GLScene. I also think that would be worth the effort. Do you have some scheduled plan for migration? Would it be useful to contribute? How to contribute?
Ciao,
Gilles Marcou
Hi, Gilles i've began some code sometime ago with nice results see https://sourceforge.net/p/glscene/discussion/93605/thread/423d2ca0/#ad55 .
I removed it from Branch beacause not stable. I always have some code
But i no scheduled plan. I haven't enought free time.
Yes it will be useful if you can help me. I'll contact you soon in private, it will be more easy to speak in french.
Thanks
Jérôme