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

PoisonError #545

Closed
helgoboss opened this issue Mar 20, 2022 · 2 comments
Closed

PoisonError #545

helgoboss opened this issue Mar 20, 2022 · 2 comments
Labels
bug Something isn't working high priority

Comments

@helgoboss
Copy link
Owner

XRaym reported that this occured when opened an old template:

===== ATTENTION =====

Sorry, an unknown error occurred in REAPER plug-in ReaLearn. REAPER should continue to work but ReaLearn might show unexpected behavior until restarting REAPER. If you feel like saving your project file at this point, better save it as a new file because this error could have messed up the plug-in state.

In any case, please report this error:

1. Prepare an e-mail containing:
    - The error information further below (IMPORTANT)
    - Some instructions on how to reproduce the error (IMPORTANT)
2. If possible, attach the following files:
    - Your REAPER project file (.rpp)
    - Your REAPER configuration file (reaper.ini)
3. Send it to [info@helgoboss.org](mailto:info@helgoboss.org)

Thank you for your support!

--- cut ---
REAPER version:      6.46/x64
Module name:         ReaLearn
Module version:      v2.12.0-pre.4/x86_64 rev cdddd1 (2021-12-30 00:33:19 UTC)
Module base address: 0x7ffdac5c0000
Module size:         0x1059000

Message: called `Result::unwrap()` on an `Err` value: PoisonError { .. }

   0:     0x7ffdad05bf4d - cpp_to_rust_IReaperControlSurface_Extended
   1:     0x7ffdad05b5ec - cpp_to_rust_IReaperControlSurface_Extended
   2:     0x7ffdacf3b998 - DllMain
   3:     0x7ffdad07e710 - cpp_to_rust_IReaperControlSurface_Extended
   4:     0x7ffdad07e1d1 - cpp_to_rust_IReaperControlSurface_Extended
   5:     0x7ffdad07bbaf - cpp_to_rust_IReaperControlSurface_Extended
   6:     0x7ffdad07e129 - cpp_to_rust_IReaperControlSurface_Extended
   7:     0x7ffdad1458f0 - rust_eh_personality
   8:     0x7ffdad145a03 - rust_eh_personality
   9:     0x7ffdac621459 - NSEEL_HOSTSTUB_LeaveMutex
  10:     0x7ffdac7d0363 - NSEEL_HOSTSTUB_LeaveMutex
  11:     0x7ffdad065766 - cpp_to_rust_IReaperControlSurface_Extended
  12:        0x140900dbd - <unknown>
  13:        0x1403c1904 - <unknown>
  14:        0x1403e355c - <unknown>
  15:        0x1403f3197 - <unknown>
  16:        0x14083efbc - <unknown>
  17:        0x14062fa88 - <unknown>
  18:        0x14062a78a - <unknown>
  19:        0x140628f8f - <unknown>
  20:        0x140254d9e - <unknown>
  21:        0x140252a98 - <unknown>
  22:        0x1401f2971 - <unknown>
  23:        0x140274493 - <unknown>
  24:        0x1404027a7 - <unknown>
  25:        0x14040c7a5 - <unknown>
  26:        0x14042f7e9 - <unknown>
  27:     0x7ffe075c28b0 - ScreenToClient
  28:     0x7ffe075c2052 - ScreenToClient
  29:     0x7ffe0760a309 - UnpackDDElParam
  30:     0x7ffe075be7e8 - CallWindowProcW
  31:     0x7ffe075be47e - CallWindowProcW
  32:     0x7ffdc6e7afe8 - DllUnregisterServer
  33:     0x7ffdc6e7ad80 - DllUnregisterServer
  34:     0x7ffdc6e7afe8 - DllUnregisterServer
  35:     0x7ffdc6e7ae5f - DllUnregisterServer
  36:     0x7ffe075be7e8 - CallWindowProcW
  37:     0x7ffe075be229 - DispatchMessageW
  38:        0x14042a7e5 - <unknown>
  39:        0x14094e591 - <unknown>
  40:     0x7ffe08b37034 - BaseThreadInitThunk
  41:     0x7ffe09082651 - RtlUserThreadStart
--- cut ---
@helgoboss helgoboss added bug Something isn't working high priority labels Mar 20, 2022
@helgoboss
Copy link
Owner Author

The poisoned mutex is just a follow-up panic of another panic. We should ignore the poisoning when locking the mutex so that the other panic is not covered by the poison unwrap panic.

@helgoboss
Copy link
Owner Author

Here's the trace with symbols resolved. Need to adjust the mutex access in reaper_high::Reaper::guarded().

1: 7ffdad05b5ec
-----------------------------------
            
Relative: Some(a9b5ec)
Ours absolute: Some(7fff1cb8b5ec)

7fff1cb8b590
backtrace::capture::Backtrace::new
C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.59\src\capture.rs (line 140)


2: 7ffdacf3b998
-----------------------------------
            
Relative: Some(97b998)
Ours absolute: Some(7fff1ca6b998)

7fff1ca6b960
reaper_high::log_util::create_reaper_panic_hook::closure$0<reaper_high::log_util::create_default_console_msg_formatter::closure$0>
C:\Users\runneradmin\.cargo\git\checkouts\reaper-rs-d32fed07113e6874\4dbeb8e\main\high\src\log_util.rs (line 51)


3: 7ffdad07e710
-----------------------------------
            
Relative: Some(abe710)
Ours absolute: Some(7fff1cbae710)

7fff1cbae4e0
std::panicking::rust_panic_with_hook
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\panicking.rs (line 626)


4: 7ffdad07e1d1
-----------------------------------
            
Relative: Some(abe1d1)
Ours absolute: Some(7fff1cbae1d1)

7fff1cbae130
std::panicking::begin_panic_handler::closure$0
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\panicking.rs (line 519)


5: 7ffdad07bbaf
-----------------------------------
            
Relative: Some(abbbaf)
Ours absolute: Some(7fff1cbabbaf)

7fff1cbabb90
std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure$0,never$>
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\sys_common\backtrace.rs (line 141)


6: 7ffdad07e129
-----------------------------------
            
Relative: Some(abe129)
Ours absolute: Some(7fff1cbae129)

7fff1cbae0e0
std::panicking::begin_panic_handler
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\std\src\panicking.rs (line 515)


7: 7ffdad1458f0
-----------------------------------
            
Relative: Some(b858f0)
Ours absolute: Some(7fff1cc758f0)

7fff1cc758c0
core::panicking::panic_fmt
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\core\src\panicking.rs (line 92)


8: 7ffdad145a03
-----------------------------------
            
Relative: Some(b85a03)
Ours absolute: Some(7fff1cc75a03)

7fff1cc75970
core::result::unwrap_failed
/rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b\/library\core\src\result.rs (line 1599)


9: 7ffdac621459
-----------------------------------
            
Relative: Some(61459)
Ours absolute: Some(7fff1c151459)

7fff1c150a70
reaper_high::reaper::Reaper::guarded<realearn::infrastructure::plugin::realearn_plugin::impl$3::ensure_reaper_setup::closure$1::closure$0,realearn::infrastructure::plugin::realearn_plugin::impl$3::ensure_reaper_setup::closure$0,realearn::infrastructure::p
C:\Users\runneradmin\.cargo\git\checkouts\reaper-rs-d32fed07113e6874\4dbeb8e\main\high\src\reaper.rs (line 270)


10: 7ffdac7d0363
-----------------------------------
            
Relative: Some(210363)
Ours absolute: Some(7fff1c300363)

7fff1c300340
realearn::infrastructure::plugin::realearn_plugin::impl$2::init
D:\a\realearn\realearn\main\src\infrastructure\plugin\realearn_plugin.rs (line 174)


11: 7ffdad065766
-----------------------------------
            
Relative: Some(aa5766)
Ours absolute: Some(7fff1cb95766)

7fff1cb95520
vst::interfaces::dispatch
C:\Users\runneradmin\.cargo\git\checkouts\vst-rs-8c46934a2d9a5311\a838689\src\interfaces.rs (line 102)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

1 participant