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

Mouse movements leading to crash with cocoa #248

Closed
tomaka opened this issue Feb 2, 2015 · 10 comments · Fixed by #250
Closed

Mouse movements leading to crash with cocoa #248

tomaka opened this issue Feb 2, 2015 · 10 comments · Fixed by #250

Comments

@tomaka
Copy link
Contributor

tomaka commented Feb 2, 2015

From glium/glium#425 (comment):

Running the window example from Glutin has the same error, keyboard and clicks work fine, while mouse movement crashes with this crash report: http://pastebin.com/VjV4gWzd

@mystise
Copy link

mystise commented Feb 2, 2015

All examples have the same error for me, except for multi window, as that dispatches 3 separate threads (Which crashes even before I move the mouse)

@mystise
Copy link

mystise commented Feb 2, 2015

Multi window crash report: http://pastebin.com/a2bDTwhP

@simnalamburt
Copy link

@tomaka
Copy link
Contributor Author

tomaka commented Feb 2, 2015

Oh that's probably useful!

cc @bjz

@brendanzab
Copy link
Contributor

Thanks! I'll have to fix the rust-cocoa bindings. For now we can call msgSend_stret directly. It'll be a few hours before I get home, but if you submit a PR that does something like: msgSend_stret()(..., selector("locationInWindow")) I can hit merge for you.

brendanzab added a commit to brendanzab/glutin that referenced this issue Feb 3, 2015
@brendanzab
Copy link
Contributor

Ugh, seems I caused a regression in servo/cocoa-rs#59. It's really hard to know what needs msgSend vs msgSend_stret... sorry!

@brendanzab
Copy link
Contributor

And thanks for the awesome sleuthing @simnalamburt, I knew exactly what to fix!

@brendanzab
Copy link
Contributor

What are you using for the stack trace? Instruments.app?

tomaka added a commit that referenced this issue Feb 3, 2015
@simnalamburt
Copy link

Wow! @bjz, thanks for your fix.

Actually that was just Xcode debugger (graphical lldb frontend). I'm pretty new with OS X, even don't know what msgSend_stret is, I just choosed Xcode just because it was already installed in my MBA and it looks easier than CLI lldb. Instruments.app looks awesome by the way! (Real time resource inspector, OpenGL inspector, etc)

@brendanzab
Copy link
Contributor

It would be great if you could do a tutorial on it - I prefer a graphical debugger to the command line.

tomaka added a commit that referenced this issue Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

4 participants