Mojo2 Canvas not working on Windows 7

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
When testing on my Windows 7 desktop and Windows Vista VM Mojo2 projects don't run. The window appears, but closes when myCanvas=New Canvas() is called.

Mojo1 and MiniB3D examples do run correctly. Only Mojo2 has the problem.

I'm using MSVC.

Log from bouncyaliens.cxs example
Code:
Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:05.11
Cerberus Runtime Error : Memory access violation
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/glutil.cxs<57>
STOPPED
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<707>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<783>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<636>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<595>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<161>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<1564>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo2/graphics.cxs<2551>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/examples/mojo2/bouncyaliens/bouncyaliens.cxs<97>
C:/Users/grant/Downloads/Cerberus_v2021-05-16-Windows/Cerberus_v2021-05-16/modules/mojo/app.cxs<96>

TRANS FAILED: Error executing 'CerberusGame', return code=-805306369
Done.
 
Last edited:

Phil7

Administrator
CX Code Contributor
3rd Party Tool Dev
Joined
Jun 26, 2017
Messages
644
Did you check, if older versions of Cerberus are working?
I remember having some problems running mojo2 on WinXP machines, but this had to do with graphics drivers and I didn't want to deal with that on every machine.
 

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
I attached a report from GLEW. It says "OpenGL version 1.4.0 - Build 8.15.10.1912 is supported", but it also says that GL_VERSION_1_5 and GL_VERSION_2_0 are all "OK". Also I attached a graphics report generated by the system. Do mojo1 and mojo2 use different versions of OpenGL?
 

Attachments

  • glewinfo.txt
    274.9 KB · Views: 19
  • DiagnosticReport.txt
    2.1 KB · Views: 21

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,167
Yes, they do. Mojo uses opengl 1 or 2, mojo2 opengles 2 with shaders.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,167
So you are using an Intel cpu with an integrated graphics chip? I couldn't see which one exactly but can you tell me? Or is it an emulated machine?
 

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
Processor: Intel® Pentium® Processor E5300
Display Adapter: Intel(R) G33/G31 Express Chipset Family

It is not an emulated machine. That was the Windows 7 desktop.

When I used GLEW on the Vista virtual machine it says OpenGL 2.1 is supported. I attached the GLEW report for it.
 

Attachments

  • glewinfo - for Vista VM.txt
    274.3 KB · Views: 18

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,167
It doesn't support OpenGL 3 which is almost equal to OpenGL ES 2. did you try
the Angle target? That should work with mojo2. I think it translates to Directx 9 which this chip will support.
 

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
OK, I see. I can't get Angle to compile. I attached the compile log. All my Windows computers are over 10 years old or are VMs, so that's probably just why they have poor OpenGL support. The cheap Windows 10 tablet I have runs the OpenGL builds fine (it's like 6 years old).
 

Attachments

  • angle-log.txt
    11 KB · Views: 19

SLotman

Active member
3rd Party Module Dev
Joined
Jul 3, 2017
Messages
174
Intel video cards are the worst. I remember once writing my own engine and I caugt at least 3 cards LYING about their capabilities!
They all told me they supported 24-bits depth buffer, but in reality they only supported 16 bits on OpenGL (24 bits was only under Direct-X!)

So... do not trust those 'reports' when it comes to Intel cards. They will tell you 'feature x' works, but if you actually try to use it - specially under Windows with OpenGL - you're going to have tons of headache.
 
Top Bottom