OpenGL Error on Mac - 'gl_test' error on load [RESOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
LeonDaydreamer
Veteran
Posts: 335
Joined: Sun Feb 22, 2015 1:20 am
Projects: A Near Dawn, Put A Sock In It!, Ghosts Are Good Hosts
Contact:

OpenGL Error on Mac - 'gl_test' error on load [RESOLVED]

#1 Post by LeonDaydreamer » Sat Jul 23, 2016 2:15 am

Hi, my name is Leon. I've been working on the game Put A Sock In It!

We're trying to put together the final builds for different platforms, and we seem to be running into an issue when loading the game on Mac.
It spits out the following error message as soon as I load it:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 159, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 378, in script
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 378, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 304, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 321, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
error: Unsupported image format
I get that it's testing OpenGL support, and apparently it doesn't like the image format... looking into 00gltest.rpy, the image appears to be set to:

Code: Select all

config.gl_test_image = "black"
This is the first time we tried putting together a Mac build, so I wouldn't be surprised if we missed something. Any suggestions would be greatly appreciated. :)
Last edited by LeonDaydreamer on Tue Aug 02, 2016 2:21 am, edited 2 times in total.
ImageImageImageImage

User avatar
LeonDaydreamer
Veteran
Posts: 335
Joined: Sun Feb 22, 2015 1:20 am
Projects: A Near Dawn, Put A Sock In It!, Ghosts Are Good Hosts
Contact:

Re: 'gl_test' Error on Mac?

#2 Post by LeonDaydreamer » Sun Jul 31, 2016 12:27 am

We still seem to be getting this error on Mac. Can anyone shed some light on this issue?

A friend said that Mac supports OpenGL 4.1, which is an API from 2010, and that if Ren'Py is trying to use a more recent version it might have some issues. Does that make sense?
ImageImageImageImage

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: OpenGL Error on Mac - 'gl_test' error on game load

#3 Post by PyTom » Sun Jul 31, 2016 10:29 am

Hm... The problem here is that the GL test is the first time Ren'Py does soemthing, so a lot of the GUI is exercised at the same time. The full traceback would be a lot more informative than what you've posed, but my guess is that it's probably an incorrect file type for config.window_icon, which has to be a .png, not a .icns.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
LeonDaydreamer
Veteran
Posts: 335
Joined: Sun Feb 22, 2015 1:20 am
Projects: A Near Dawn, Put A Sock In It!, Ghosts Are Good Hosts
Contact:

Re: OpenGL Error on Mac - 'gl_test' error on game load

#4 Post by LeonDaydreamer » Sun Jul 31, 2016 10:39 am

Oh, thanks a lot PyTom! :)
You're right, we are using an .icns file.
I'll correct it and hopefully that will solve things.
ImageImageImageImage

Post Reply

Who is online

Users browsing this forum: Google [Bot]