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

Panku native logger freezes game on release mode when logging a lot #188

Open
rikmarais opened this issue Aug 28, 2024 · 0 comments
Open
Labels
Bug🐞 Something isn't working

Comments

@rikmarais
Copy link

Hey there
First off, great work and love the project.

Describe the bug
I currently have Panku enabled on release builds and I'm seeing behaviour that doesn't exist in the debug build.
I print a lot of information for debugging.

With Panku enabled:
A debug mode export is fine, and logs fine.
A release mode export freezes when logging a lot.

I've tracked it to the native logger module but after combing through that I just can't find what is causing the issue specifically on release mode.

To Reproduce
Steps to reproduce the behavior:

  • Create a blank new Godot 4.2.2 project
  • Install and activate Panku
  • Add code that prints a lot (for example 100 chars 100 times, see method below)
  • Export a release mode build (with Panku enabled) and a debug mode build
  • In both builds, execute the code that prints a lot

Example function

func print_100_times_100_chars():
	var char_line = "A"
	for i in range(100):
		char_line += str(i) # 100 chars

	for j in range(100):
		print(j, char_line) # 100 times

Expected behavior
Release mode behaves as debug mode behaves and doesn't freeze

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Win11
  • Godot version 4.2.2
  • Panku version 1.7.8

Additional context
Add any other context about the problem here.

  • Disabling Native Logger module alleviates the problem.
  • I am not certain if Panku is intended to be disabled on release. I know that the option to disable it exists, but I like having it enabled. Should I disable it?
@Ark2000 Ark2000 added the Bug🐞 Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants