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

realearn 2 starting with error in ubuntu 18.04, wine 32bit, reaper 32bit #144

Closed
michaelsjackson opened this issue Feb 13, 2021 · 13 comments
Labels
enhancement New feature or request hard Would be quite hard to implement low priority realearn Related to ReaLearn

Comments

@michaelsjackson
Copy link

But did not remove Realearn 1 first, maybe this is the reason, will test that variant as well. Here the error I got, just for reference, maybe it helps:

===== 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

Thank you for your support!

--- cut ---
Module name:         ReaLearn
Module version:      v2.0.1/x86 rev efbf25 (2021-02-09 21:45:36 UTC)
Module base address: 0x1c800000
Module size:         0x964000

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

   0: 0x1ce6c792 - Extended
   1: 0x1cd875fc - VSTPluginMain
   2: 0x1ce89667 - Extended
   3:       0x34 - <unknown>
   4: 0xec835657 - <unknown>
--- cut ---


@helgoboss
Copy link
Owner

Sorry, wrong issue referenced in commit.

@michaelsjackson
Copy link
Author

I also tried deleting realearn 1, its .dll from my vst plugins directory, did not change anything, same error, so it seems to be independent on that. Just as an additional info.

@helgoboss
Copy link
Owner

Okay. I'm not really inclined to fix this at the moment since I'm not at all familiar with Wine. Is there any chance you can use REAPER natively on Linux?

@michaelsjackson
Copy link
Author

Did not investigate your system fully yet, but its main power seems coming from the "virtual controls" which is just great! In future I can try to compare, how I tried to generate similar "virtual controls" via other means, using various other tools for Reaper, scripts, internal or external, just as an inbetween layer. Would be great to know how you came up with this concept, where you got the idea for it?

@michaelsjackson
Copy link
Author

Okay. I'm not really inclined to fix this at the moment since I'm not at all familiar with Wine. Is there any chance you can use REAPER natively on Linux?

No problem, not hurrying at all. If this will not work, then not. I can try native linux version as well, as a different story then of course. Also someone else might look into it, in future, here we kept its report at least. Anything which is not fun, should not be done.

@michaelsjackson
Copy link
Author

Do you have any guessings which files could cause this in your project, where to look first, any hints?

@helgoboss
Copy link
Owner

This seems to be a very low-level error which occurs right at the start when loading the VST plug-in. On the first sight, the backtrace doesn't give any helpful hints where the error could be, that's also why I'm so hesitating looking into it. It also seems the original error is hidden. Some debugging might help.

@helgoboss
Copy link
Owner

Did not investigate your system fully yet, but its main power seems coming from the "virtual controls" which is just great! In future I can try to compare, how I tried to generate similar "virtual controls" via other means, using various other tools for Reaper, scripts, internal or external, just as an inbetween layer. Would be great to know how you came up with this concept, where you got the idea for it?

Yes, I guess the virtual controls can be very helpful. I was planning to implement that concept already long ago for another envisioned plug-in named "SoundPot" (which was too big in scope for me at that time, so I never managed to push it beyond prototype stage). But then I found that ReaLearn could profit from the same concept, too ... and eventually maybe even evolve into something similar like "SoundPot". I think the idea itself is not really new or unique. It's the first logical step if your goal is to decouple 2 things, in this case decoupling controllers from what is being controlled. "Decoupling" is something that many developers are very familiar with :)

@michaelsjackson
Copy link
Author

Except Reaper devs maybe, at least regarding to midi mapping, as you said well in your video. :-)

In your launch.json, for portable Windows 32-bit, you have this, but my Reaper.exe is somewhere else, can this be the problem? My reaper.exe is in C:\\Program Files\\REAPER\\reaper.exe

        {
            "name": "Portable Windows 32-bit",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "C:\\REAPER32\\reaper.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false
        },

@helgoboss
Copy link
Owner

This file is just intended for debugging ony my machine via Visual Studio Code. It doesn't affect anything else.

@michaelsjackson
Copy link
Author

Ok, thanks.

@helgoboss helgoboss added low priority enhancement New feature or request hard Would be quite hard to implement labels Feb 25, 2021
helgoboss added a commit that referenced this issue Mar 9, 2021
Also don't let mutex poisoning panics hide the original panic. Might be interesting for finding
the actual cause of #144.
@helgoboss
Copy link
Owner

@michaelsjackson I ran into a similar error (PoisonError) today on Windows and confirmed that it hides the real error. 2.7.1 shouldn't hide the real error anymore. So if you want to give it another try on Wine ... maybe the error message will be clearer this time.

@helgoboss
Copy link
Owner

I'm going to close this for now. I feel that with yabridge, there's no reason anymore to prefer running REAPER on Wine over running it on Linux natively.

@helgoboss helgoboss added the realearn Related to ReaLearn label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hard Would be quite hard to implement low priority realearn Related to ReaLearn
Projects
None yet
Development

No branches or pull requests

2 participants