-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Tauri] App crashes when using the js api #23
Comments
I have the same problem |
@skyslide22 Have you found a solution? |
no, i have not touched this crate/rust in general since |
Enregistrement.de.l.ecran.2024-06-26.a.11.03.40.mov
npm run tauri info :
|
Is this plugin being maintained or has it been discontinued? |
My computer works fine! iShot_2024-10-16_10.58.25.mp4 |
looks like it's crashing on this
|
I'm seeing a hard crash as well, both in my own project and in the repo's examples. In case it's helpful, here is the stack trace produced when trying to drag in the OS: MacOS 14.6.1
|
@lucasfernog-crabnebula I've ran into the same issue so I cloned the repo and run the tauri example with the debugger. Here is the exact stack-trace with the error that's causing this crash. I would love to submit a fix for this but I'm not sure what could be the cause of this issue and how to proceed. Let me know if I can help in any way or if you have an idea on how to fix this for me to try out! ![]() |
@lucasfernog-crabnebula I experimented with the code a little bit. This bypasses the crash that everyone here seems to be reporting. - let current_position: NSPoint = msg_send![ns_view, backingAlignedRect: r1 options: opts];
+ let current_position = NSPoint::new(0., 0.); Despite that, the code still crashes here afterwards (trace from debugger below). Commenting out this part makes the functionality work as expected with no more errors. That is probably not the desired fix for the issue but could be a workaround or a hint at what's actually wrong. Let me know if I can provide any other info. My specs below:
![]() Also, somewhat unrelated as the crash happens in the example on this repo, but here is the
|
@lucasfernog-crabnebula @denjell-crabnebula I've submitted a draft PR with the workaround I mentioned above: #57 Let me know if I should try something else or if I can help fix this any other way. |
I am on macos, the tauri v1 app crashes as soon as i call startDrag.
When i don't pass the icon key at all it doesn't crash, but no drag either.
The file definitly exist and the app has access to /Desktop.
There is no message in the terminal when the app closes...
npm run tauri info
output:main.rs:
I have also tested your example at https://github.com/crabnebula-dev/drag-rs/blob/main/examples/tauri/index.html and it crashes the app aswell
The text was updated successfully, but these errors were encountered: