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

[Bug]: Segfault loading fonts #246

Open
1 task done
TotalChaos05 opened this issue Jan 11, 2025 · 4 comments
Open
1 task done

[Bug]: Segfault loading fonts #246

TotalChaos05 opened this issue Jan 11, 2025 · 4 comments
Labels

Comments

@TotalChaos05
Copy link

Software Version

3.0.1

What Happened?

The system segfaults on loading fonts

Access Type: Write
when loading a custom font
Access Type: Read
when loading "standard"

What was Expected?

The fonts should load without segfaulting

Code to Reproduce

fontdata = {file = "resources/fonts/m6x11plus.ttf", render_scale = self.TILESIZE*10, TEXT_HEIGHT_SCALE = 0.83, TEXT_OFFSET = {x=10,y=-20}, FONTSCALE = 0.1, squish = 1, DESCSCALE = 1}
font = love.graphics.newFont( fontdata.file, fontdata.render_scale)

Console

Nintendo 3DS

Firmware Version(s)

11.17.0-50U

Custom Firmware Version

13.2.1

Execution Method

Homebrew Menu

Code of Conduct

  • I have read the Code of Conduct and agree to these terms
@TotalChaos05
Copy link
Author

Note that i am porting a game, rather than writing from scratch, which could also be the source of the issue

@TurtleP
Copy link
Collaborator

TurtleP commented Jan 11, 2025

If you can dump the exception when it happens and upload it, I can debug it further. My initial suspicion is it’s possible that you’re running out of linear memory, which is not caught properly on versions before 3.1.0.

@TotalChaos05
Copy link
Author

TotalChaos05 commented Jan 11, 2025 via email

@TotalChaos05
Copy link
Author

crash_dump_00000001.dmp
heres the crash dump

if the issue is memory, is there any way i can make it utilize the full n3ds memory instead of the (assumed) o3ds limit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants