fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.95k stars 822 forks source link

Crash on keyboard move + undo #4162

Open KjellMorgenstern opened 1 month ago

KjellMorgenstern commented 1 month ago

Current Behaviour

Fritzing crashes on quick keyboard movements + undo.

image Build: Fritzing 0.8.7b (sic) , probably all version until 1.0.3.

Operating System: All

Steps to reproduce:

  1. Place an item into view
  2. Quickly:
  3. Press right or any other direction two or three times to move the part
  4. Press Ctrl+Z for Undo once

-> Fritzing crashes, or the part vanishes. Complexer movements and undo/redo combinations also show unpredictable behavior.

A crash is very likely, but as this is a timing issue, multiple retries might be needed. The Fritzing window will vanish, a linux console will show "Segmentation fault (core dumped)"

Expected Behaviour

Pressing Ctrl-Z once should undo the movement, but not yet undo adding the part. No crashes or corruptions of course.

KjellMorgenstern commented 1 month ago

This bug went under the radar since ever. I think this shows that most users are placing parts with the mouse, not the keyboard.