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.

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby Donald Duck » Fri May 19, 2017 4:03 pm

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?
User avatar
Donald Duck
 
Posts: 33
Joined: Sat Jan 21, 2017 6:51 pm
Location: Duckburg

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby MartinVee » Fri May 19, 2017 4:40 pm

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).
User avatar
MartinVee
 
Posts: 97
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby Donald Duck » Fri May 19, 2017 6:38 pm

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.
User avatar
Donald Duck
 
Posts: 33
Joined: Sat Jan 21, 2017 6:51 pm
Location: Duckburg

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby MartinVee » Fri May 19, 2017 6:58 pm

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.
User avatar
MartinVee
 
Posts: 97
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby Nadro » Tue May 30, 2017 9:28 pm

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.
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby MartinVee » Wed May 31, 2017 12:39 pm

I'm not that familiar with virtualization, but it's good to know!
User avatar
MartinVee
 
Posts: 97
Joined: Tue Aug 02, 2016 3:38 pm
Location: Québec, Canada

Re: CursorControl pointer is null CIrrDeviceMacOSX.mm

Postby Nadro » Thu Jun 01, 2017 9:12 am

@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).
Nadro
 
Posts: 1647
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Previous

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest