getcursor / cursor

The AI Code Editor
https://cursor.com
25.35k stars 1.57k forks source link

Cursor keeps randomly crashing #1653

Open Haraven opened 3 months ago

Haraven commented 3 months ago

Description

After a while of of working with the IDE, Cursor crashes. The window goes blank for a few seconds then it closes. It doesn't seem to matter what I'm doing; I've had it crash while chatting with the AI and applying suggestions, and while simply browsing code.

I wish I could provide steps to reproduce this issue, but it occurs very randomly. It's happened twice in one hour, so far.

System information

absolutegravitas commented 2 months ago

same issue on arch running lts kernel

Haraven commented 2 months ago

For me, the issue went away after a few system upgrades. I don't know what could have caused it.

Tanguille commented 2 months ago

Also experiencing this on Fedora 40 with gnome. Usually when I click on a code action suggestion. Very annoying.

absolutegravitas commented 2 months ago

i've found it's stable when running the AppImage file directly (instead of installing cursor-bin via AUR) -- ymmv

Tanguille commented 2 months ago

i've found it's stable when running the AppImage file directly (instead of installing cursor-bin via AUR) -- ymmv

Interesting. I'm using this to integrate my AppImage applications.

bardicreels commented 2 months ago

I've noticed running it in firejail and from a terminal that remains open keeps it stable. No crashes since i started doing that

bardicreels commented 2 months ago

firejail --noprofile ~/path/to/Cursor.AppImage

AnthonyLedru commented 2 months ago

Same problem, I installed the AppImage via AppImageLauncher. I noticed that when I run it via my terminal it doesn't seems to crash anymore

lesong36 commented 2 months ago

Same problem, I installed the AppImage via AppImageLauncher. I noticed that when I run it via my terminal it doesn't seems to crash anymore

same here... do you have better solution?

Haraven commented 1 month ago

For me, the issue went away after a few system upgrades. I don't know what could have caused it.

I stand corrected. It still happens. Just now I've had it happen twice in a row: Cursor closed again after re-launching.

Haven't tried running from the terminal.

cylera-paul commented 1 month ago

Executing cursor via the default desktop entry produced by appimaged would display a blank window for 2-3 seconds then crash. As others pointed out above, executing using firejail (in my case, via the desktop entry's firejail action) or directly executing the AppImage file via the terminal would work reliably without crashing.

Setting DRI_PRIME=1 in the .desktop file fixes the issue entirely for me.