[GH-ISSUE #1253] Fonts cause black screens if they don't exist in homedir on Linux #400

Closed
opened 2026-03-17 12:06:01 +03:00 by kerem · 6 comments
Owner

Originally created by @chaserhkj on GitHub (Apr 11, 2013).
Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/1253

Met with segmentation fault while trying to load some translated AVG games.

This behavior was observed in loading of Toradora Portable (Chinese Translated version) and Ore no Imouto ga Konnani Kawaii Wake ga Nai Portable (Chinese Translated Version) these two games.

Error output file:
https://docs.google.com/file/d/0B2cmIAqfPwVaZ2lGZUkzSURwYTQ/edit

I'm not sure what module of the app caused this bug, but I suppose it is about the fonts... And it may even be something with the Chinese translated version's problem, which may use GBK encoded fonts rather than UTF8. But as I haven't got any original Japanese game isos, I cannot test it myself to locate the problem.

Originally created by @chaserhkj on GitHub (Apr 11, 2013). Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/1253 Met with segmentation fault while trying to load some translated AVG games. This behavior was observed in loading of Toradora Portable (Chinese Translated version) and Ore no Imouto ga Konnani Kawaii Wake ga Nai Portable (Chinese Translated Version) these two games. Error output file: https://docs.google.com/file/d/0B2cmIAqfPwVaZ2lGZUkzSURwYTQ/edit I'm not sure what module of the app caused this bug, but I suppose it is about the fonts... And it may even be something with the Chinese translated version's problem, which may use GBK encoded fonts rather than UTF8. But as I haven't got any original Japanese game isos, I cannot test it myself to locate the problem.
kerem closed this issue 2026-03-17 12:06:06 +03:00
Author
Owner

@unknownbrackets commented on GitHub (Apr 11, 2013):

Is this with fastmem off? Do you have a compiler you could use to get a stack trace (such as Visual Studio Express)?

-[Unknown]

<!-- gh-comment-id:16217972 --> @unknownbrackets commented on GitHub (Apr 11, 2013): Is this with fastmem off? Do you have a compiler you could use to get a stack trace (such as Visual Studio Express)? -[Unknown]
Author
Owner

@chaserhkj commented on GitHub (Apr 11, 2013):

@unknownbrackets

Opps, I ran the game with fastmem on....

Turning fastmem off actually clears the crash of the whole program, but the game still won't work, it blocks with a black screen, here is the error output:
https://docs.google.com/file/d/0B2cmIAqfPwVaV3l5X0EtSXptUjA/edit?usp=sharing

I tried the gdb with debug build under Linux platform, send a sigint while the app is blocked ,and get the following stack trace info:

1 0x000000000067b642 in FramebufferManager::CopyDisplayToOutput (this=0xfb4de8) at /home/hkj/ppsspp/GPU/GLES/Framebuffer.cpp:468
2 0x00000000006786d4 in GLES_GPU::CopyDisplayToOutput (this=0xfb2190) at /home/hkj/ppsspp/GPU/GLES/DisplayListInterpreter.cpp:273
3 0x00000000005a65f0 in hleEnterVblank (userdata=345, cyclesLate=2) at /home/hkj/ppsspp/Core/HLE/sceDisplay.cpp:400
4 0x0000000000597903 in CoreTiming::ProcessFifoWaitEvents () at /home/hkj/ppsspp/Core/CoreTiming.cpp:479
5 0x0000000000597a53 in CoreTiming::AdvanceQuick () at /home/hkj/ppsspp/Core/CoreTiming.cpp:520
6 0x0000000000597b05 in CoreTiming::Advance () at /home/hkj/ppsspp/Core/CoreTiming.cpp:543
7 0x0000000040100025 in ?? ()
8 0x0000000000000000 in ?? ()

Updated issue name.

<!-- gh-comment-id:16219547 --> @chaserhkj commented on GitHub (Apr 11, 2013): @unknownbrackets Opps, I ran the game with fastmem on.... Turning fastmem off actually clears the crash of the whole program, but the game still won't work, it blocks with a black screen, here is the error output: https://docs.google.com/file/d/0B2cmIAqfPwVaV3l5X0EtSXptUjA/edit?usp=sharing I tried the gdb with debug build under Linux platform, send a sigint while the app is blocked ,and get the following stack trace info: 1 0x000000000067b642 in FramebufferManager::CopyDisplayToOutput (this=0xfb4de8) at /home/hkj/ppsspp/GPU/GLES/Framebuffer.cpp:468 2 0x00000000006786d4 in GLES_GPU::CopyDisplayToOutput (this=0xfb2190) at /home/hkj/ppsspp/GPU/GLES/DisplayListInterpreter.cpp:273 3 0x00000000005a65f0 in hleEnterVblank (userdata=345, cyclesLate=2) at /home/hkj/ppsspp/Core/HLE/sceDisplay.cpp:400 4 0x0000000000597903 in CoreTiming::ProcessFifoWaitEvents () at /home/hkj/ppsspp/Core/CoreTiming.cpp:479 5 0x0000000000597a53 in CoreTiming::AdvanceQuick () at /home/hkj/ppsspp/Core/CoreTiming.cpp:520 6 0x0000000000597b05 in CoreTiming::Advance () at /home/hkj/ppsspp/Core/CoreTiming.cpp:543 7 0x0000000040100025 in ?? () 8 0x0000000000000000 in ?? () Updated issue name.
Author
Owner

@unknownbrackets commented on GitHub (Apr 11, 2013):

Hmm, "libc:%s: no reent structure", that's never a good thing (that's coming from the game's libc.) It does look probably font related as you said.

-[Unknown]

<!-- gh-comment-id:16220493 --> @unknownbrackets commented on GitHub (Apr 11, 2013): Hmm, "libc:%s: no reent structure", that's never a good thing (that's coming from the game's libc.) It does look probably font related as you said. -[Unknown]
Author
Owner

@chaserhkj commented on GitHub (Apr 13, 2013):

After copying all the font files from ppsspp/flash0/font/ to my ppsspp flash path ~/.ppsspp/flash, this font related problem is solved, PPSSPP still have other problems while running these AVGs, but that would be another issue.

Also, I recommend that we should add some code to initialize user's flash directory with flash0 directory or at least add some instructions in docs, do some packaging for linux users about these fonts. But I think these would be other issues, too.

Anyway, I think this issue can be closed.

<!-- gh-comment-id:16326494 --> @chaserhkj commented on GitHub (Apr 13, 2013): After copying all the font files from ppsspp/flash0/font/ to my ppsspp flash path ~/.ppsspp/flash, this font related problem is solved, PPSSPP still have other problems while running these AVGs, but that would be another issue. Also, I recommend that we should add some code to initialize user's flash directory with flash0 directory or at least add some instructions in docs, do some packaging for linux users about these fonts. But I think these would be other issues, too. Anyway, I think this issue can be closed.
Author
Owner

@unknownbrackets commented on GitHub (Apr 13, 2013):

I'm going to reopen and edit the title of this issue, we should handle this better.

-[Unknown]

<!-- gh-comment-id:16326968 --> @unknownbrackets commented on GitHub (Apr 13, 2013): I'm going to reopen and edit the title of this issue, we should handle this better. -[Unknown]
Author
Owner

@unknownbrackets commented on GitHub (Oct 27, 2013):

This has been done now, it copies them into the build directory and uses them from there.

-[Unknown]

<!-- gh-comment-id:27177828 --> @unknownbrackets commented on GitHub (Oct 27, 2013): This has been done now, it copies them into the build directory and uses them from there. -[Unknown]
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ppsspp#400
No description provided.