LaserWeb / LaserWeb4

Collaborative effort on the next version of LaserWeb / CNCWeb
GNU Affero General Public License v3.0
706 stars 191 forks source link

Documents not showing after import on workspace after extended use. #640

Open opensourcefan opened 2 years ago

opensourcefan commented 2 years ago

After performing multiple gcode generations with multiple files eventually a new document stops showing in the workspace.

Restarting fixes the issue. Sometimes but not always "reset"ing the workspace helps but a restart is more reliable. Occurs with SVG and PNG, haven't tried anything else.

Sometimes if I hit generate the gcode moves will show even though no image was previously displayed. Toggling "show document" has no effect.

harlock999 commented 2 years ago

There is a lot of rework to the frontend being done by easytarget. Can you try to toggle the 'display cache performance' in the LaserWeb settings? What browser and version are you using?

opensourcefan commented 2 years ago

Using 4.0.999 and it appears that it's just opens it's own window vs a browser window. Edge is my default though.

I'll try the toggle next time I get it to happen.

opensourcefan commented 2 years ago

Oh and I should mention that I am exporting the gcode only, not monitoring or running from LW. I don't have my or any machine connected.

easytarget commented 2 years ago

@opensourcefan ; thanks for the report :-)

I'm not too surprised to hear that the app can bog down and lock up after extended use.. in fact I have seen this myself in the past, and I mentally attributed it to memory leaks, with a side order of buffers and console filling up. Some of it due to app and library issues, some of it due to browser issues and limitations.

The work-around is, I'm afraid, to restart the app. I'm hoping my code fixes some of these issues since it uses properly maintained libraries etc.. but I'm not making any promises.

I assume from reading your comments that you are running the LaserWeb executable bundle (Electron build), is this on Windows or Linux? I'd be curious to know since I want to keep track of where problems are showing up.

opensourcefan commented 2 years ago

Appreciate the response, thank you for all the hard work. As my username suggestions I really appreciate FOSS.

Running on Windows 10, latest build.

I've got in the habit of just restarting before each project now, seems to keep things stable.