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

RecorderThread: Fix silent crash when debug mode is enabled #203

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

chenxiaolong
Copy link
Owner

The output filename variable was not initialized at the point that startLogcat() was called, resulting in an uninitialized property exception being thrown. This bug was introduced in commit 588d3f6.

This commit also fixes startLogcat() accessing the filename property without acquiring the filenameLock lock. In practice, this did not cause issues, but better to be correct.

Discovered in issue #195.

The output filename variable was not initialized at the point that
startLogcat() was called, resulting in an uninitialized property
exception being thrown. This bug was introduced in commit
588d3f6.

This commit also fixes startLogcat() accessing the filename property
without acquiring the filenameLock lock. In practice, this did not cause
issues, but better to be correct.

Discovered in issue #195.

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Dec 26, 2022
@chenxiaolong chenxiaolong merged commit 46bdd52 into master Dec 26, 2022
@chenxiaolong chenxiaolong deleted the crash branch December 26, 2022 22:33
chenxiaolong added a commit that referenced this pull request Dec 26, 2022
Signed-off-by: Andrew Gunnerson <[email protected]>
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