Skip to content

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

@rikmarais

Description

@rikmarais

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug🐞Something isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions