-
Notifications
You must be signed in to change notification settings - Fork 75
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
Panic -> crash #199
Comments
With the above information provided, depending on the game's architecture plus your implementation of this crate, I suggest you have a look at #shared_memory and #Atomic_types. |
@domatinio If you was trying to link some page/documentation github removed the links. Why should "game's architecture" have any impact on this? Why is unpacker frame supposed to always exist, when packed one does not? I was not been able to figure that out from the code. I am not sure if you was pointing to shared memory and atomic, to explain why it is panicking, or to point out, that I can do something about it, can you elaborate please? |
What are the reasons puffin can panic for? |
I have no idea, I can find the line https://github.com/EmbarkStudios/puffin/blob/main/puffin/src/frame_data.rs#L455 but I do not understand, why it should always pass. |
Use pseudocode to represent the whole profiler. It will help you better understand the overall flow. I do not think i can help you any further. Good luck. |
@domatinio why would I try to represent the profiler with pseudocode when the source code is available? Can you explain what exactly did you mean in more detail? |
Hey @xNxExOx I'd be willing to give you a hand with debugging this one if you don't telling me what you need. It would also be helpful to have the source along with it so I can debug, but I fully understand if you are concerned about stealing and don't wish to share it (since you've clearly put a lot of time and effort into it). |
@v0x0g you can download the game here: https://skylords.eu/ and we do not have source code of the game itself, we replaced a DLL, to add profiling events to the game. If you would like to help with improving (and fixing) the game help would be welcome too :) |
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:
Additional context
panic:
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:
new_frame
in main threadegui::profiler_ui
have its own thread, there is 32 threads, that have few profiling eventnew_frame
in main thread againegui::profiler_ui
have its own thread, there is 30 threads, that have few profiling eventThe text was updated successfully, but these errors were encountered: