Skip to content

Panic -> crash #199

@xNxExOx

Description

@xNxExOx

Describe the bug
The more functions I profile the more often I get a panic from puffin.

To Reproduce
Unforutnatelly I do not have an reproducible example, I can share a game (15GB) and instructions...

Expected behavior
No panic.

Device:

  • OS: Windows 11

Additional context
panic:

.cargo\registry\src\index.crates.io-1cd66030c949c28d\puffin-0.19.0\src\frame_data.rs:455:18:
We should have an unpacked frame if we don't have a packed one

I suspect it might be related to the threading model I use, but I would still expect it to not panic.
The game have two threading options:

  • Do most things on main thread
    • this panic only very rarely
    • in this mode I call new_frame in main thread
    • and majority of profiling events happen in main thread too
    • egui::profiler_ui have its own thread, there is 32 threads, that have few profiling event
  • Rendering and game logic separated
    • the panic happens relatively often
    • in this mode I call new_frame in main thread again
    • but majority of profiling events happen in other threads
    • egui::profiler_ui have its own thread, there is 30 threads, that have few profiling event

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions