Skip to content

Conversation

@apple1417
Copy link
Contributor

No description provided.

this is motivated by a lockup caused in bl2 calling `PC.ConsoleCommand("x")`
in trying to print the `>>> x <<<` line, we woke the logger thread
it then changed the function flags on `Engine.Console:OutputTextLine`, before getting stuck on waiting for the lock inside `process_event`
at the same time, the main thread tried to print `Command not recognized: x`, also calling `OutputTextLine`
something about the flags having been changed while calling it caused a lockup

fix is to expand the scope of the lock, and only change the function flags while we hold it

incidentally the native call to `OutputTextLine` went through `CallFunction`, figure it's a good idea to lock during it too
@apple1417 apple1417 merged commit b47370a into bl-sdk:master Dec 16, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant