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

record_windows Plugin Crashes in Release Mode on Windows #453

Open
mbfakourii opened this issue Dec 19, 2024 · 2 comments
Open

record_windows Plugin Crashes in Release Mode on Windows #453

mbfakourii opened this issue Dec 19, 2024 · 2 comments

Comments

@mbfakourii
Copy link

mbfakourii commented Dec 19, 2024

Package version

  • record_windows (latest version or specify the exact version used)

Environment

  • OS: Windows 10, Version 10.0.26100

Describe the bug
The record_windows plugin works as expected in Debug mode, but it causes the application to crash in Release mode. The crash generates an exception with the following error:

EXCEPTION_ACCESS_VIOLATION_READ / 0x0
Fatal Error: EXCEPTION_ACCESS_VIOLATION_READ / 0x0

The issue appears to be related to the mtx_do_lock function in the mutex.cpp file, as indicated by the stack trace.

Record Configuration
Add your record configuration RecordConfig(...) here.

To Reproduce
Steps to reproduce the behavior:

  1. Add the record plugin in your Flutter project.
  2. Use the plugin to record audio in the application.
  3. Build the application in Release mode using the following command:
    flutter build windows --release
    
  4. Run the application in Release mode.
  5. Observe the crash when attempting to use the plugin.

Expected behavior
The application should run without crashes in both Debug and Release modes, and the record_windows plugin should function correctly.

Error Details
The following is an excerpt from the stack trace:

EXCEPTION_ACCESS_VIOLATION_READ / 0x0
MSVCP140 +0x0131f8
mtx_do_lock (mutex.cpp:103)
ucrtbase +0x1388af
record_windows_plugin +0x013dbb
...

Additional context
n/a

@mbfakourii mbfakourii changed the title Record Windows Plugin Crashes in Release Mode on Windows record_windows Plugin Crashes in Release Mode on Windows Dec 19, 2024
@llfbandit
Copy link
Owner

Thanks for reporting.
I was unable to reproduce it with the example project. Can you fill a reproducer?

@llfbandit
Copy link
Owner

Is this related to #379?

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

No branches or pull requests

2 participants