Closed keefo closed 1 month ago
@keefo,
thanks for your report. Unfortunately I don't know what caused this error and I neither have a Mac device or your type of printer. The report indicate Graphics hardware encountered an error and was reset: 0x00000001
(what ever that means, this could point into the wrong direction as well)
It is surprising that Pronterface crashes two times at nearly the same position / time after one hour of printing. My first thought was that there is maybe a corrupt gcode file involved, but I can't see how this will crash Pronterface.
Pronterface itself generate a log file. Can you attach the file here? Maybe this can give us some more information. The file is called printrun.log
and should be on the same place where you can find the configuration file called printrunconf.ini
or .pronsolerc
. You can find the location in the Settings menu: -->Settings -->Options -->User Interface and there the setting Log Path should show you where the file is located.
In addition I would try to print the involved gcode file directly from SD-card in the printer. This way you can eliminate the file as a possible problem source.
I am able to finish print of many other models,
Do I understand correctly that other gcode files print fine it is just this one that doesn't? (Which to me would point more towards the gcode file and less towards Printrun code)
Were you able to print models longer than 1h before?
If you downgrade to Printrun 2.0.1, are you able to print this gcode file?
I can answer few questions above:
Do I understand correctly that other gcode files print fine it is just this one that doesn't? Correct.
Were you able to print models longer than 1h before? Yes.
In addition I would try to print the involved gcode file directly from SD-card in the printer. This way you can eliminate the file as a possible problem source. If I move the xcover.gcode to sd card and print on my printer, it works, no issue.
I will try to get logs and upload here.
2. Were you able to print models longer than 1h before? Yes.
May be this is some memory leak in the GPU memory, e.g gpusSubmitDataBuffers fails to release the old buffer data. Being able to print longer files does not support this idea, but still possible.
Another possibility is the vector data provided to opengl to be wrong. This could be tested by removing most of the contents of the file and leaving only the initialization and the printing of the object around the height (Z coordinate) around the problem occurs. Print the file without loading filament. If the cut file does not give error, then it may be memory leak. If error, then bad vector data.
I did another print, this time it crash around 1h 15mins. The same crash call stack. Here is the log, nothing useful I can see.
I did some tests today with the provided gcode. I printed the part 3 times under different condition (the way like@volconst mentioned w/o filament and low temps). The first print I simply print the gcode (I changed the temperature values in the file to 30°C). No problem, so the gcode in general seems to be ok. In second attempt I increase the load on Pronterface and the serial communication by enabling the communication debugging in Pronterface. The print went well again. In third attempt I increased in addition the print speed to 300% to generate more traffic for Pronterface and the serial communication. Same result. On a Windows system with my printer I can't replicate the problem.
Looking on the attached log file It didn't show any useful information. Can you enable debug communication ( -->Settings -->Debug communications).
2024-05-31 14:26:19,674 - ok N147743 P0 B15
is line 148918
in the gcode file. There is nothing wrong with the next lines following.
One additional test. I have a build with macOS 11 in my repository. Maybe worth to check as well. It is based on the same code but build with a macOS-11 environment. It should be the same as the build with macOS12, but who knows if there is something different. Here is the link to the file: https://github.com/DivingDuck/Printrun/actions/runs/9286412163
I did a simulation of the file with the mock-printer. The opengl output of printrun should be the same. No crash and it finished without problems. (macOS 12.7.4 with Intel Graphics, Printrun 2.1.0)
May be this is some memory leak in the GPU memory, e.g gpusSubmitDataBuffers fails to release the old buffer data. Being able to print longer files does not support this idea, but still possible.
Another possibility is the vector data provided to opengl to be wrong.
Apple abandoned OpenGL a while ago, so their drivers are not always... great, to say the least. It might be a bug in the driver for this specific AMD Radeon X5000.
I suspect it is the the main visualization cause the crash, I will turn it off and print to see how it goes.
I am printing a large part now, will update here tmr.
I can confirm if I disable main visualization. It does not crash.
@keefo try this test - double click the 3d viewer to pop up the advanced viewer and in it use the up/down keys to render layer by layer. test all layers, also from bed to top direction.
I am printing a large part now
the large part could be fine even with 3d viewer.
@keefo try this test - double click the 3d viewer to pop up the advanced viewer and in it use the up/down keys to render layer by layer. test all layers, also from bed to top direction.
I did try this, no crash, everything is fine. I think the crash only occur during main 3d view render green part. Is there way to dry run the print without connect to a printer?
Is there way to dry run the print without connect to a printer?
Use this as printer https://github.com/kliment/Printrun/blob/master/testtools/mock-printer.py instructions inside
Hello @keefo There is quite some time passed, is there any update for this issue and was you able to make a test via mock-printer?
@rockstorm101, Should we close this issue? I don't see that we can anything do with this issue.
@rockstorm101, Should we close this issue? I don't see that we can anything do with this issue.
Agreed, let's close it. I hope once we migrate to pyglet 2+ every 3D rendering issue will be solved. Nothing to be done really until then other than disabling the 3D viewer.
I have a consistent crash repro during print. My printer is ender 3v2 with BIGTREETECH SKR MINI E3 V3.0 board.
Here is the gcode I use, when I print this around 1h 02m the app crash and print stopped. I have tried 2 times, crash at the same step.
I am able to finish print of many other models, it is just this model which trigger the crash. please see the gcode file in attachment.
This is the crash call stack:
Please see crash reports in the attachments.
xcover.gcode.zip crash_reports.zip