dsharlet / LiveSPICE

Real time SPICE simulation for audio signals
MIT License
420 stars 61 forks source link

Stops Loading Models, or creating new ones #198

Open jhsa opened 1 year ago

jhsa commented 1 year ago

I have installed the current latest version of LiveSpice. Very often, it stops loading models (examples included) or even creating new schematics. I have googled the problem and found out that deleting the "User.config" file would solve the problem. Well, it does for some time, but then after using the app a couple times it happens again. Thanks

Morophla commented 7 months ago

I have the same issue. Have you found a solution?

Thanks!

jhsa commented 7 months ago

Nope.. As far as I know we have to delete the "User.config" file every time it happens.

Morophla commented 7 months ago

Oh... I don't even find a User.config file! Maybe I don't search at the right place... Where is yours?

jhsa commented 7 months ago

I think something like this, you might have to enable "Hidden Items" to be visible on your File Explorer.

C:\Users\Your User Name\AppData\Local\LiveSPICE\LiveSPICE_Url_w5ye0vm5hlaotc22ot05vljtu3mbfnzi\1.0.0.0

Then inside the last folder you should find the user.config file.

Morophla commented 7 months ago

Ok! Got it! Thank you very much!

movleax commented 2 months ago

I was experiencing this same issue.

edit:

Originally I thought there is a problem with LiveSPICE->Utils->DockingManagerExtensions.cs->SaveLayout(...), then I thought maybe it is a bug with AvalonDock...

Maybe either or is true, but I think this goes deeper with the way AvalonDock expects to be used.

All of these AvalonDock issues seem related to this LiveSPICE issue. https://github.com/Dirkster99/AvalonDock/issues/104 https://github.com/Dirkster99/AvalonDock/issues/279 https://github.com/Dirkster99/AvalonDock/issues/397 https://github.com/Dirkster99/AvalonDock/issues/383

One of the issues, Dirkster99 suggests to look at the MLibTest project for saving and loading.

Looking at the MLibTest project, it seems this is using MVVM, events, asynchronous calls, and many-many other techniques. Whereas, I am not seeing a same architecture with LiveSPICE. I could be very wrong of course, but it's not showing an obvious 1:1 or anything close to that.

I was not able to get the MLibTest project to run, but if the author is correct, and the project does in fact save/load just fine, then maybe this could just be a case of AvalonDock expects to be used a certain way,

Furthermore, it seems that the loading code in MLibTest is using some kind of interface that will pickup the xml objects, attempt to cast/assign them into the View Models, then if there is a match, apply ContentID and other stuff to these and add to the App object's file (whatever that means).

In an effort for experimentation and digging deeper, I tried taking the example MLibTest code and massaging it into LiveSPICE. Alas, no luck.