Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrueType fonts don't display in Release builds while appearing in Debug builds when Unicode Mode is enabled #1901

Open
bryansee opened this issue Oct 16, 2018 · 39 comments

Comments

@bryansee
Copy link

commented Oct 16, 2018

UnicodeModeBugTest.zip
Since the implementation of Unicode Mode, TrueType fonts aren't displayed completely in Release builds while appearing in Debug builds.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

I don't think so.

2018-10-16 22 13 26

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

I don't think so.

2018-10-16 22 13 26

But I tested out both Debug and Release and the difference is striking.
truetype fonts in debug
truetype fonts in release

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

You may tested something wrong. My experience (and screenshot provided) shows that the statement in your issue is overgeneralized.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

You may tested something wrong. My experience (and screenshot provided) shows that the statement in your issue is overgeneralized.

Then how did you get it?

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

I did nothing special. Did everything like in BtA for example.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

I did nothing special. Did everything like in BtA for example.

How?

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

Like that.

rus_mod.zip

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

Like that.

rus_mod.zip

Still the same.

I bet Asarium will look into this.

debug
Debug
release
Release

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

Is it your build or some nightly?

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

I'm using a latest nightly build.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 16, 2018

I do the same, strange enough. Well, lets hope Asarium will figure out, indeed.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 16, 2018

I do the same, strange enough. Well, lets hope Asarium will figure out, indeed.

Me too. And others will hope he does.

@asarium

This comment has been minimized.

Copy link
Member

commented Oct 17, 2018

I'll try this when I have some time.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 17, 2018

I'll try this when I have some time.

Make it so when you have some time.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 17, 2018

I have report that my mod works as intended for other users. What setup do you have? Is it Windows PC? I'm trying to figure out differences you and me have.

@NovachenFS2

This comment has been minimized.

Copy link
Contributor

commented Oct 17, 2018

I actually does not have problems with unicode either.

But maybe that has something to do with hooking problems i have encountered with another programs. If i am using DxTory (Recording/FPS display program) the game crashes with release builds right away, except if i tell the program to delay the hooking for at least one second.
Debug builds are working fine right away and does not need this "workaround".

If i am using Trillian (a multi-protocol IM) i can not use it's in game chat overlay, because it is not displayed, as well none of the ships are rendered in the game with it, but that is also the case in Debug builds either. And both problems has nothing to do with Unicode mode...

So only some input to approach this problem from another direction. Maybe there is a connection.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 18, 2018

Artyrm, I am using a Windows 10 PC.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

@NovachenFS2 IDK if it is related. But with overlay problems you could try the game with -Window flag.

@bryansee That's at least one difference - I'm on WIn7. What videocard? Do you use any OpenGl hooks?

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

And I just thought. Can you try my mod with "Russian" set as a language in FSO .ini?

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 18, 2018

And I just thought. Can you try my mod with "Russian" set as a language in FSO .ini?

It makes no difference, still.

rus release
rus debug

I am using ATI Radeon 5670. I use OpenGL.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

Here is what's strange. Apparently those writings should be in Russian, since they appear at all. That could mean that mod hasn't become active as it should. Could you upload a log for this?

I heard that ATI cards could act strange with FSO Engine. Personally, I have Radeon Mobile HD 5000 that shows corrupted meshes in target view. But that may be the next thing, once we understand what happens with mods.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 18, 2018

Here's the log file.

fs2_open_log.txt

I know it's strange. It's up to asarium to find out what's the cause of this and solve it as soon as possible.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

No, here I'm about the fact that Russian language didn't activate. But the reason is likely in FSO ini file, since we have this in log:
ERROR: Unknown Language Checksum: -1206269263

Can you post this .ini here too?

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 18, 2018

Here's the FSO ini file.
fs2_open_ini.txt

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

Can you place Language settings the last in the [Default] section and before [Sound] (I have it more like that) and see if it does something?

Speaking of differences, I see

Stuffed bool: true
Stuffed string = [FS2]

All over your log, and no such thing in mine.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 18, 2018

Yes.

However, I got the same result. Here are the files.
fs2_open_log.txt
fs2_open_ini.txt

I think it's the full-screen mode.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

Ok, so the language is still not working. I'm now uploading my mod to Knossos to try it on my ATI machine. And also I can grant you access to test it with full dependencies (I based it on MediaVps 3.8.2).
BTW maybe to upload logs via Knossos will be easier (It can be done via options of the mod you're running).

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 18, 2018

Yep, I got it. All letters are gone. I tried to switch to Russian but FSO refused to run at all, so I'm rebooting now.

Anyways now my main version is ATI Video. Maybe you can try to run on internal video ore something?

@asarium

This comment has been minimized.

Copy link
Member

commented Oct 20, 2018

It appears that this is specific to the AMD HD 5000 GPU series. Since I do not have such a GPU any more I cannot help with this issue.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 20, 2018

@bryansee I maybe could return to it sometime later, since for now I have no debug environment on that laptop with ATI. Meanwhile you can try to find more ATI users, so we can join forces on that.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 20, 2018

@bryansee I maybe could return to it sometime later, since for now I have no debug environment on that laptop with ATI. Meanwhile you can try to find more ATI users, so we can join forces on that.

Me too.

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 22, 2018

So, we have some OpenGL issue. Feature that works in Debug, but do not work in Release. So I searched with the following regex throughout the code: #ifndef NDEBUG[\S\s]OpenGL[\S\s]#endif
The differences in those places should be investigated first:

  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengl.cpp(184):#ifndef NDEBUG
  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengl.cpp(1009):#ifndef NDEBUG
  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengl.cpp(1205):#ifndef NDEBUG
  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengl.cpp(1415):#ifndef NDEBUG
  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengltexture.cpp(930):#ifndef NDEBUG
  G:\Games\Freespace\Source\fs2open.github.com.git\code\graphics\opengl\gropengl.h(46):#ifndef NDEBUG
@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 22, 2018

I tested that mod on my laptop. Same, but this time, the Debug build displayed no TrueType fonts at all. I'm using ATI Radeon R6 (AMD A10-8700P) graphics.

FS2 Open Log
fs2_open_log.txt
Debug
debug ati mobility
Release
release ati mobility

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Oct 22, 2018

Oh, well, it getting worse. But we're lucky that first time it was different in Debug. We could use this difference to find the reason.

@bryansee

This comment has been minimized.

Copy link
Author

commented Oct 22, 2018

Oh, well, it getting worse. But we're lucky that first time it was different in Debug. We could use this difference to find the reason.

It's not just on AMD HD 5000. But also graphic cards such as AMD Radeon R6. I hope asarium take notice of this.

@ngld

This comment has been minimized.

Copy link
Contributor

commented Nov 4, 2018

This bug only seems to appear on AMD Radeons... Maybe it's a driver bug?
Anyway, here are two more people with the same issue:

https://www.hard-light.net/forums/index.php?topic=95196.msg1875560#msg1875560
https://www.hard-light.net/forums/index.php?topic=95196.msg1876020#msg1876020

@Artyrm

This comment has been minimized.

Copy link
Contributor

commented Nov 4, 2018

You can recommend them to run Debug as a workaround for now.

But yeah, I remembered, that it either not work with certain cards, or sopped work with recent nightlies.

@bryansee

This comment has been minimized.

Copy link
Author

commented Nov 7, 2018

This bug only seems to appear on AMD Radeons... Maybe it's a driver bug?
Anyway, here are two more people with the same issue:

https://www.hard-light.net/forums/index.php?topic=95196.msg1875560#msg1875560
https://www.hard-light.net/forums/index.php?topic=95196.msg1876020#msg1876020

This shows I and Artyrm aren't the only ones. It may be, or it may not. As the latter pointed out, Debug is the only workaround for now.

It may be something to do with the code itself.

@bryansee

This comment has been minimized.

Copy link
Author

commented Nov 29, 2018

Can this be related to models not being displayed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.