nion-software / nionswift

Nion Swift is open source scientific image processing software integrating hardware control, data acquisition, visualization, processing, and analysis using Python. Nion Swift is easily extended using Python. It runs on Windows, Linux, and macOS.
http://nion.com/swift
GNU General Public License v3.0
47 stars 33 forks source link

Swift Force closing #1197

Open Ion-e opened 1 month ago

Ion-e commented 1 month ago

Happened a few times. Managed to get a reproduceable steps, although it's possible that different issues are also causing crashes/force closes/freezes.

STR: New project > Rename the project to an existing Project in the chosen folder > Create > Repeat (60%ish of triggering)

Same behaviour has been observed by using the "Recent Projects" or "Open Project".

In a particular case, the 2 latest snapshots were lost.

cmeyer commented 1 month ago

Can you revisit this after updating nionui-tool? The commit that probably fixes this is nion-software/nionui-tool@a1767987ab0161dac9b1abdffbbf58f558ce162a

jamesrussell216 commented 1 month ago

@cmeyer I had a look today - it's still doing it for me on the new build I'm afraid. Took me a few goes though (~4).

cmeyer commented 1 month ago

Can you recheck this after you updated nionui-tool last night? Thanks.

jamesrussell216 commented 1 month ago

Yep sure...

Yep still a think I'm afraid @cmeyer - happened on my second attempt this time. :-(

cmeyer commented 1 month ago

Can you give me the exact steps you're using to trigger the problem? In the past I've tested by repeatedly using the menu item File > Recent Project and going back and forth between two projects. I cannot get a crash with that sequence of steps. What is your list of steps?

Ideally expressed like this:

  1. Launch Swift
  2. Choose menu item File > Recent Project and choose the first project at the top
  3. After it opens, repeat step 2 until crash.
jamesrussell216 commented 1 month ago

Yep...

  1. Launch Swift
  2. File > New Project
  3. Enter a Project Name that is the same as an existing project (in the Projects Folder).
  4. Create Project
  5. Wait ~5 seconds while Swift either reloads the new project fine, or reloads the new project then crashes out.
  6. If no crash, repeat from step 2 until crash.

I can send you a video if that would help but it really is as simple as that. If you're not seeing it I wonder if it's a Windows problem?

Ion-e commented 1 month ago

(Reminder to test the following when this has been fixed https://github.com/nion-software/nionswift/issues/1209)