Menu

GLScene crash on Mac

Lazarus
2018-06-14
2018-07-05
  • MARCOU Gilles

    MARCOU Gilles - 2018-06-14

    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

     
  • Jerome.D (BeanzMaster)

    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

     
  • Jerome.D (BeanzMaster)

    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

     
  • Jerome.D (BeanzMaster)

    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

     
  • Jerome.D (BeanzMaster)

    Ok the first clue i found :

    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

     
  • MARCOU Gilles

    MARCOU Gilles - 2018-06-17

    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.

     
  • MARCOU Gilles

    MARCOU Gilles - 2018-07-05

    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

     
  • Jerome.D (BeanzMaster)

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.