CursorControl pointer is null CIrrDeviceMacOSX.mm

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Donald Duck
Posts: 34
Joined: Sat Jan 21, 2017 6:51 pm
Location: Duckburg
Contact:

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by Donald Duck »

MartinVee wrote:Did you get to try stepping into createWindow to see what's going on?
I found something strange in createWindow, I don't really know why that happens. I tried putting a breakpoint on line 715 in CIrrDeviceMacOSX.mm and there it said that OGLContext is not null, but the if statement at the next line (OGLContext != NULL || CreationParams.Driver == video::EDT_OPENGL) is false although OGLContext != NULL is true.
MartinVee wrote:Also, can you confirm that other OpenGL games are working inside your virtual machine?
I tried running Blender which uses OpenGL and it crashed just like my program. But I also have a Linux virtual machine and there Irrlicht and OpenGL work just fine. What should I do to get OpenGL to work?
MartinVee
Posts: 139
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by MartinVee »

I get that you're using Virtual Box? Did you enable the 3D Acceleration setting in Display Settings for the irtual machine?

Also, you might want to read this : Hardware 3D acceleration (OpenGL and Direct3D 8/9).
Donald Duck
Posts: 34
Joined: Sat Jan 21, 2017 6:51 pm
Location: Duckburg
Contact:

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by Donald Duck »

I tried enabling 3D acceleration for the Mac virtual machine but it didn't change anything. The page you linked to says it doesn't work for Mac guests:
It is only available for certain Windows, Linux and Solaris guests.
MartinVee
Posts: 139
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by MartinVee »

Well then, that's sad, but here's your answer.

I have to say I'm surprised that 3D acceleration can work at all with virtual machines. I thought that it requires far more access to the hardware than virtualization permits. Then again, that's good news as future iteration of Virtual Box could allow 3D acceleration to work with MacOSX.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by Nadro »

Hi,

Sorry for my late response. I'll check this patch and apply them to a trunk.

@MartinVee
If you need 3D acceleration on VM with macOS you should buy a second GPU and do GPU passthrough for this device in your host OS. In that way you will have native 3D performance, but remember that not all GPUs works fine in macOS.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
MartinVee
Posts: 139
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by MartinVee »

I'm not that familiar with virtualization, but it's good to know!
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Post by Nadro »

@Donald Duck
Irrlicht v1.8.x doesn't work properly with newer versions of OSX/macOS, if you need the best compatibility please use trunk. I though that this issue is related to trunk, sorry that I didn't check that before. Irrlicht from trunk is definitly better than stable v1.8.x release (v1.8.x is really old).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply