-
Notifications
You must be signed in to change notification settings - Fork 229
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
Windows XP doesn't have ConditionVariables, which notify requires via mpsc channels #79
Comments
Is there any more than that message, by some chance? Sounds pretty hard to debug if not. |
Tagging with help-wanted because there's no label for "I have no idea." |
Windows XP support is super shady. While libstd does not link to any functions that are unavailable on Windows XP (hence "Hello world!" works), certain std functionality does load those functions at runtime and will panic if they don't exist. It's quite likely that somewhere rsnotify depends on some functionality that requires an API that isn't available on Windows XP. |
So, probably want to close that as wontfix? |
@BrunoQC maybe if you run the sample program with |
|
What happens if you do |
|
Yep, so Rust is currently just broken on Windows XP when it comes to panicking. So you'll just have to get a debugger that works on Windows XP and use that to get a backtrace instead. |
Like this?
|
Ah, XP doesn't have ConditionVariables, and the mpsc channels use that. |
Perhaps one day someone can replace the mutexes and condvars and such in Rust's std with https://github.com/Amanieu/parking_lot. Then it would work on Windows XP (and be faster too!). |
We could also bypass that process and use nonstd concurrency in notify directly, but that's a bit of a bigger project. |
Possibly maybe could be solved by not using mpsc at all i.e. the v5 design. To be tested. |
v5 will not solve this, as futures use condition variables internally. Truly an upstream issue. |
Btw I don't need XP support anymore. Maybe someone else do. |
I'll close this, then. |
I'm not sure if I should report this here or not. I don't know what's the status of xp support with Rust. A simple 'hello world' works but the sample code from README.md results in a 'thread panicked while processing panic. aborting.'.
rustc 1.9.0 (e4e8b6668 2016-05-18)
notify = "2.6.1"
The text was updated successfully, but these errors were encountered: