Still trying to pinpoint the cause, but after the update to 1.2.139, our game crashes when loading a particular screen:
EDIT: Pinpointed crash to the loading of a font see below.
INFO:DLIB: Log server started on port 65107
INFO:ENGINE: Engine service started on port 65112
INFO:ENGINE: Defold Engine 1.2.139 (eedf9a7)
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device 'default'
DEBUG:SCRIPT: Creating TCP server
DEBUG:SCRIPT: Starting TCP server on port 3648
ERROR:GRAPHICS: gl error 1281: invalid value
Assertion failed: (0), function SetTexture, file ../src/opengl/graphics_opengl.cpp, line 2017.
INFO:fmod: Running in the editor. Will attempt to load libraries from project
INFO:CRASH: Successfully wrote Crashdump to file: /Users/da_petcu21/Library/Application Support/Defold/_crash
Hi again! Could you give me the font metrics you have used? I’ve done a few preliminary tests now with your font and it took me quite a while to get a crash, but I eventually got it. However, running the simulation again with the exact same parameters doesn’t yield the crash. Did you have a similar experience or does it crash every time for you guys?
Yes, it crashes every time that scene is loaded. Since then though I’ve narrowed it down to using the “$” character with that particular font. Removing every occurence of the dollar sign in that scene seems to fix the issue. Here are the .font propreties:
Yeah, looks like we are getting two different value from the internal metrics calculations - the glyphs get a larger ascent value than what the font says. Basically, we cannot trust that we are given a correct max ascent from the font Working on the fix now!