christopherpow / nesicide

Integrated Development Environment for the 8-bit Nintendo Entertainment System
316 stars 38 forks source link

Closing IDE while graphics banks are opened destroys project file #61

Closed aa-dav closed 4 years ago

aa-dav commented 4 years ago

(windows 10, last build)

  1. Create new project from template "hello world" (ca65)
  2. Open tab with graphics banks
  3. Close IDE - if asks "save changes?" - press "Yes". Result: Hello world.nesproject is empty.
christopherpow commented 4 years ago

I am unable to reproduce this in https://bintray.com/christopherpow/nesicide/nesicide/1.0.107#files

christopherpow commented 4 years ago

FWIW I tried both OSX and Windows builds and am unable to reproduce given the steps.

aa-dav commented 4 years ago

Hmm.... I reproduce it very easily. I may make video of process. Maybe content of global IDE settings are important? I add CSPSoftware/NESICIDE.ini here in attach. Also my manual settings after archive unpack are:

NESICIDE.zip Projects are created in dir c:\devel\nes\

aa-dav commented 4 years ago

Well, with this release: https://bintray.com/christopherpow/nesicide/nesicide/1.0.107#files I could not reproduce it too. But it's extremly unstable and even crashes while opening my example project from latest version. Well, it's strange. I'll monitor future versions.

christopherpow commented 4 years ago

I have been seeing crashes on project opening occasionally. I am not yet sure of the cause.

christopherpow commented 4 years ago

RE the crashes can you try with https://bintray.com/christopherpow/nesicide/nesicide/1.0.109#files And also let me know if it crashes when you're already running a ROM in the emulator, or if the emulator is paused, or both? I think it's caused by some inappropriate threading behavior when a project is being shut down.

aa-dav commented 4 years ago

https://bintray.com/christopherpow/nesicide/nesicide/1.0.109#files

My steps:

  1. download, unpack, run
  2. goto preferences: uncheck 'show welcome', set utf-8, tabs=8, uncheck 'replace by spaces'
  3. open project c:\devel\nes\Example04 (I add it in attach) CRASH (IDE just dissapears)
  4. run it again and open project again For 1 second I see project tree, but then IDE shuts down like I close it myself. Example04.zip Old version works normally with project, but contains bug of this topic. P.S. By the way, Nesicide often disappers after changing IDE preferences first time. But preferences are changed. I never reported it because could not find pattern.
christopherpow commented 4 years ago

@aa-dav latest build https://knob.phreneticappsllc.com/nesicide/?s=download seems pretty stable on Windows. Let me know. Also, your Example04 project seems to have double-newlines, which appears to throw off the execution-line marking. I'm not sure if that's caused by the project wizard creating the project or when it's saved as utf8.