Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crashes when slicing big models (Intel i9-13900K / 14900K issue ?) #11845

Open
2 tasks done
Maywtf12 opened this issue Dec 5, 2023 · 49 comments
Open
2 tasks done

Comments

@Maywtf12
Copy link

Maywtf12 commented Dec 5, 2023

Description of the bug

Since updating the PrusaSlicer to 2.7 I'm having problems slicing big models. I press "Slice Now", it goes to 20% maybe and then crashes without any message. It works just fine if I scale the model down substantially. Is there a way I can enable additional logging? I attached the event from windows event viewer.

Also full spec:
https://pastebin.com/bQXTByYB

Project file & How to reproduce

RG351P_Epic_ultra_Release_candidate_SD1.zip
image

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

PrusaSlicer-2.7.0+win64-202311231457

Operating system

Windows 11 (build 22631), 64-bit edition

Printer model

Prusa MK4

@SckyzO
Copy link

SckyzO commented Dec 16, 2023

Hello, Same issue here since prusaslicer 2.7.1 update.
When click on "slice now", it goes to 20% approximately and then crashes without any message.
For example, I use Phil Astronaut, size to 200% and slice (https://www.printables.com/model/634475-astronaut-phil-a-ment).
Instant Crash when click on "Slice New".
I uninstall Prusaslicer, remove all profile, reinstall, use a new default profile (artillery for example, i haven't mk3/4 :P), reslice et recrash ...
Before, on release 2.6, PrusaSlicer never crashed ...

@Absolo13
Copy link

I have the same issue

@lukasmatena
Copy link
Collaborator

@Maywtf12 I was not able to reproduce it, it slices fine on my setup.

@SckyzO @Absolo13 Could you please provide a 3MF? Thanks.

@KenneyDe
Copy link

Having same issue, When I try to slice a complex model it crashes on 20%.

@lukasmatena
Copy link
Collaborator

Guys, we are thankful for your reports, but we need at least minimal cooperation in order to be able to find and fix them. Please, enclose your 3MFs, please. Please. We want to fix it!

@SckyzO
Copy link

SckyzO commented Dec 20, 2023

In my case the crashes happen with all the models I download. This is not related to a particular model, it is for all models, and even as soon as I had already printed with prusaslicer 2.6. The crash is relatively instantaneous, I click on Slice Now, and PS closes by itself, without an error message.

As I couldn't find where the error was coming from, I uninstalled PS and all my profiles (although I use that of Artillery X1 and FLSUN V400), and since then it seems to stabilize. I've had 1 or 2 other crashes, but it's no longer instantaneous. I wonder if it is not linked to profiles...

There should be an option in PrusaSlicer, when you install the program, it is to "empty PrusaSlicer of all profiles to start with a clean installation"

I'm going to do some tests again, select old profiles, and STLs and I'm going to add that to the ticket. What is certain is that I am not the only one and that this happens to quite a few people since version 2.7. Maybe it's related to a hardware conf too? I don't know.

@KenneyDe
Copy link

COLLAPSING-KATANA.zip
Github does not support .3MF file type so I added it to .zip. I can replicate issue with other files that are more complex too not just this one.

@SckyzO
Copy link

SckyzO commented Dec 20, 2023

I confirm, i crash too when I slice this model :)
I crash when Gcode is generating (~90%)

@Maywtf12
Copy link
Author

@lukasmatena it probably not caused by specific models, for me every bigger model crashes the Slicer the same. If I scale it down it slices just fine.

Is there a way for me to enable a debug mode or access additional logs?

@Maywtf12 Maywtf12 reopened this Dec 21, 2023
@lukasmatena
Copy link
Collaborator

Is there a way for me to enable a debug mode or access additional logs?

You are on Windows, meaning you can enable local crash dump collection. The crash dump would show us where the application crashes. If you want to spend time with it, it would be very helpful. See the respective wiki page for instructions.

KenneyDe

Thanks, but I am not able to reproduce it with your 3MF either.

@KenneyDe
Copy link

prusa-slicer.exe.44728.dmp
prusa-slicer.exe.49124.dmp
Let me know if this works.

@SckyzO
Copy link

SckyzO commented Dec 21, 2023

@SckyzO
Copy link

SckyzO commented Dec 21, 2023

STL + Dump file

prusa-slicer.exe.52008.zip

@lukasmatena
Copy link
Collaborator

Thanks. The backtraces from @KenneyDe and @SckyzO are not the same.

@KenneyDe This is from your dump:
image
I assume that the problem will disappear if you disable Arachne perimeter generator.

@SckyzO Your dump:
image
This is a crash somewhere deep inside Clipper library, but I assume that the problem is really the data that Clipper gets from PrusaSlicer code. The minidump contains too little information to tell more.

@lukasmatena
Copy link
Collaborator

It might also be worth looking if you are not running out of memory (by watching system monitor during slicing). But that should still be reported more gracefully than this.

@SckyzO
Copy link

SckyzO commented Dec 21, 2023

Hello @lukasmatena

Thank you for your feedback. My computer is an Intel I9 14900K, 32 GB DDR5 6800. So I think that's not the problem :)
Of course, I tried swiping after reboot, with no apps open. Same problem.

How can I help provide you with more data?

@KenneyDe
Copy link

Hello @lukasmatena

Thank you for your feedback. My computer is an Intel I9 14900K, 32 GB DDR5 6800. So I think that's not the problem :) Of course, I tried swiping after reboot, with no apps open. Same problem.

How can I help provide you with more data?

I’m also running 14900k, 64gb ddr5 on my end, rtx4090.

@KenneyDe
Copy link

Just an update, I have tried disabling Arachne perimeter generator (switch to classic) and still get the same crash at 20%. Also, I noticed if i zoom the camera to where the 3d object is no longer visible, it will progress past 20% and crash on 90% generating Gcode. Here are both dumps. (dump203706 is the 90% dump).
prusa-slicer.exe.7260.dmp
prusa-slicer.exe.20376.dmp

@lukasmatena
Copy link
Collaborator

Thanks for all the data. Is it ok in 2.6.2? Does it work in the 2.7.0-alpha? Can you guys also test which is the first PrusaSlicer version where it crashes?

@lukasmatena
Copy link
Collaborator

lukasmatena commented Dec 22, 2023

Could you please try out the following build? It is very wild guess and it will probably not solve the problem, but it is worth trying. PrusaSlicer-2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92

Thanks.

@Maywtf12
Copy link
Author

Could you please try out the following build? It is very wild guess and it will probably not solve the problem, but it is worth trying. PrusaSlicer-2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92

Thanks.

NoSuchKey The specified key does not exist.
No such object: prusa3d-content-prod-14e8-slicerbuilds/PrusaSlicer-2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92-202312221129.zip

@Maywtf12
Copy link
Author

Is there a way for me to enable a debug mode or access additional logs?

You are on Windows, meaning you can enable local crash dump collection. The crash dump would show us where the application crashes. If you want to spend time with it, it would be very helpful. See the respective wiki page for instructions.

KenneyDe

Thanks, but I am not able to reproduce it with your 3MF either.

@lukasmatena
prusa-slicer.exe.46112.dmp

@lukasmatena
Copy link
Collaborator

lukasmatena commented Dec 22, 2023

@Maywtf12 Sorry, my bad. I have fixed the link in my previous post.

@newlandk
Copy link

newlandk commented Dec 30, 2023

I'm running 2.7.1 on Windows 11 on a 13900k, 32gb DDR5, RTX4090. I think it may be important to call this out as it seems at least 2 others in this thread are using new high-end rigs and initially made me wonder if there could be a hardware component to the issue.

I'm experiencing crashes when slicing that sound like the same symptoms as OP with the app crashing shortly after the slicing starts. I am able to slice the exact same Prusa 3mf file on a Win10 virtual machine on a different server as well as an older laptop running Windows 10.

I got an inkling to try a CPU limit using my motherboard utility since I did notice an quick fan ramp on my CPU AIO before crashing. I went into my BIOS and the configuration for the CPU power was essentially set to unlimited and after specifying the Intel POR limits (~253 Watts) it hasn't crashed since. I've repeated the test 3 times with and without limits and it continues to crash when power is not limited (even though I never see the charts go above 255 watts, but that could be a sampling issue).

I did try running with the integrated graphics disabled earlier and it had no effect. I'm not sure what the Slicer could be doing differently than other intensive applications... maybe using a different/new instruction set...

Either way... it's working crash-free now and I'm hoping this helps someone else's issue as well! Take care!

@SckyzO
Copy link

SckyzO commented Dec 30, 2023

Wow, that's funny, today I did the same thing. I used XTU to reset overclocking and add CPU limit, and after that no crashes. I actually think we are making progress on the bug.

@Maywtf12
Copy link
Author

@Maywtf12 Sorry, my bad. I have fixed the link in my previous post.
prusa-slicer.exe.41088.dmp

This version also crashes the same way, uploaded a fresh dump.

@lukasmatena
Copy link
Collaborator

Thanks.

if there could be a hardware component to the issue

It could be, but if you are all having problem with PrusaSlicer and not with any other application, it may as well be some threading bug in our code, which just incidentally crashes on the specific processor models.

Could you please test in which version it started? Was it ok in 2.6.1? Was it ok in 2.7.0-alpha1?

@lukasmatena
Copy link
Collaborator

Also, I have two builds with two separate attempts to fix it. Could you please test them both and tell me whether it helps or not?
2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92
2.7.1+1-lm-updated-tbb-win64-g1f6f352df
Thanks.

@Stealey24
Copy link

I've been having the same exact issues and was able to fix it. Like @newlandk said above I think the issue is related to using "high-end rigs". This is my new work computer and I don't know much about it but the IT guy who built it was able to fix the issue. He said went into BIOS and "turned off sync all core overclock and switched to 'auto'." I hope this helps. If you need more info I'll try my best to find it.
Edition Windows 10 Pro
Version 22H2
OS build 19045.3803
Processor 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
System type 64-bit operating system, x64-based processor

@natn
Copy link

natn commented Jan 2, 2024

Also, I have two builds with two separate attempts to fix it. Could you please test them both and tell me whether it helps or not?

2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92 build - I have had five consecutive successful slices when loading the sample .3mf project I uploaded in the other thread. However, when I load the source stl into a blank project and enable organic supports it still crashes silently. Both behaviors have been fully repeatable over about 5 attempts

2.7.1+1-lm-updated-tbb-win64-g1f6f352df build - one successful slice from the 3mf project, but then three consecutive silent crashes after that.

As far as I know, I am not having issues with any other applications.

@natn
Copy link

natn commented Jan 2, 2024

Also, I have two builds with two separate attempts to fix it. Could you please test them both and tell me whether it helps or not?

2.7.1+3-lm-mysterious-clipper-crashes-win64-g945677b92 build - I have had five consecutive successful slices when loading the sample .3mf project I uploaded in the other thread. However, when I load the source stl into a blank project and enable organic supports it still crashes silently. Both behaviors have been fully repeatable over about 5 attempts

2.7.1+1-lm-updated-tbb-win64-g1f6f352df build - one successful slice from the 3mf project, but then three consecutive silent crashes after that.

As far as I know, I am not having issues with any other applications.

Interestingly, If I add the source stl, enable organic supports, save a new .3mf project, close PS, reopen PS and load the saved file, the crash so far has not occured over 3 attempts and the slice was successful.

It's not conclusive, but the "mysterious-clipper" build seems to work with a project loaded from a .3mf, but not if I build the project manually and slice without a .3mf save and a reload.

@lukasmatena
Copy link
Collaborator

lukasmatena commented Jan 3, 2024

After reading through

reddit:i913900k_instability_crashes_and_svid_behavior
community.intel.com: i9-13900K-very-frequent-crashes-Windows-11-with-apps-games
reddit: im_having_some_serious_issues_with_my_i9_14900k

and others, I am starting to think that it really could be a hardware issue. The common denominator in all these strange bug reports are the i9-13900K / i9-14900K processors. The crash dumps that some of you have posted lead to various places without an obvious connection - they all end somewhere in the Clipper library, but that can be a coincidence, given that Clipper is frequently used during the slicing process. This would indicate that they occur more or less randomly, when the CPU is under heavy load.

I am not even slightly a hardware expert, but reading though the online discussions would indicate that the default BIOS settings are set at the edge of where the hardware is stable, maybe in an attempt to make the high-end CPUs look like even higher-end. Who knows. These are the things that some people report as solutions in similar cases (BIOS settings):

  • set SVID Behaviour to "Intel’s Fail Safe"
  • set Turbo Power Limits to "Intel POR"
  • limit P cores to 5.7 GHz

Could you all please try that and report whether it helps? And I am still looking forward to when someone will share the information when the problems started. If it is ok in e.g. 2.6.1 (on the same computer), it would indicate that the bug is really in PrusaSlicer, or that we at least started doing something that provokes it. Thanks.

It's not conclusive, but the "mysterious-clipper" build seems to work with a project loaded from a .3mf, but not if I build the project manually and slice without a .3mf save and a reload.

This is quite confusing. Some defects in the model may have been repaired during the save-load, so it is possible that the model from the 3MF is (slightly) different, but I don't see the connection with the changes in the "mysterious-clipper" build.

@lukasmatena lukasmatena changed the title PrusaSlicer 2.7 crashes when slicing big models Random crashes when slicing big models (Intel i9-13900K / 14900K issue ?) Jan 3, 2024
@silence48
Copy link

the issue happens in prusa slicer, bambu studio, superslicer, so seems that whatever it is, likely is underlying from slic3r.

@Delberan
Copy link

Delberan commented Jan 26, 2024

prusa-slicer.exe.2540.dmp
I also have started getting the same crashes. Also using an I9-14900K processor.
Started sometime after the 2.7.1 update.

@SckyzO
Copy link

SckyzO commented Feb 6, 2024

Good morning,

the best way I found to stabilize PrusaSlicer is to tune the CPU a little thanks to XTU (then if you want to put it in the bios to save the parameters hard, that's no problem).
I didn't touch the CPU power, but I did force a power limit and add a little voltage to the CPU cores (for better stability).
For me it works. Be careful before touching anything you must have a minimum knowledge of computers, BIOS, CPUs :D

image

@Nerdcaught
Copy link

Hey everyone! so Im not actively using Prusaslicer, I use Orcaslicer but I am having the same issues as described here. I hopped over to Prusaslicer to see if the same crash occured and copied as many settings as I could over from Orcaslicer. In a file that the slicer states has more then 1M triangles even when simplified it crashes. https://www.thingiverse.com/thing:6382941 I have to cut the mask in half in order to fit my build plate.

I recently upgraded from a I7-10700k to a I7 13700k both with 128gb of RAM. Both systems would crash but only when it had any type of Overclock, I mess around with some BIOS settings when overclocking, but if I just leave AI Overclocking with the 13700k the programs do not crash. I believe its definitely some sort of Hardware issue but its a spike that occurs when the walls are being generated. It feels like that activates a spike of some kind that the programs do not like. My 10700k used to BSOD the PC, while my 13700k now just crashes both prusa and orca. Im going to try the suggestion above from [lukasmatena] and report back on prusaslicer.

@Nerdcaught
Copy link

I tried the suggestion and it did not work out for me. I did get BSOD every time i tried a different SVID behavior option. Unless I left on Auto which I found odd. I think the spike might not be on the CPU side, but on the RAM side. if I leave it on XMP profile base it crashes . but recently I starting messing around with basic overclocking of my RAM. Im running 64gb Trident Z RGB My XMP profile is 3600 mhz at 1.35v it crashes. but if I set it at 1.45v-1.5v and increase it to 4000mhz or 4266mhz in the BIOS, it does not crash and slices quite quickly. idk if anyone else wants to try that out.

@jcleek
Copy link

jcleek commented Feb 20, 2024

I opened an issue for the crashing as I was unaware of this thread. Thank you @lukasmatena for your recommendations to test. I only had to make the one change to SVID behavior.

Motherboard: ASUS ROG STRIX Z790E GAM WF D5
Processor: INTEL INTEL I9-13900K
RAM: 32GB G.SKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 32GB (2x16GB) 6400MT/s CL32-39-39-102 1.40V Desktop Computer Memory UDIMM
Video Card: ASUS ROG Strix NVIDIA GeForce RTX™ 4070 Ti OC Edition Gaming Graphics Card

OS: Windows 11 Pro Version 22H2, OS build 22621.3155, Windows Feature Experience Pack 1000.22684.1000.0

PrusaSlicer: Version 2.7.1+win64

In the BIOS I changed: EXPERT -> AI TWEAKER -> SVID BEHAVIOR -> INTEL'S FAIL SAFE

PrusaSlicer now works as expected.

@jcleek
Copy link

jcleek commented Mar 1, 2024

Well, it did work. I upgraded PrusaSlicer from 2.7.1 to 2.7.2 and can no longer slice again. I downgraded back to 2.7.1 but no change, still cannot slice. When I try to slice the program just closes with no errors. Back to the drawing board.

@newlandk
Copy link

newlandk commented Mar 1, 2024

I had a similar experience @jcleek. My solution that is still working is to set the core voltage to a fixed value manually and lowered the Turbo Boost maximum power draw. In my case I chose 1.425 volts and 200 watts.

I have a 300mm AIO and don't see exorbitant temperatures... so I wouldn't expect whatever is happening to be thermal related. I'm wondering if something is hiccuping with power delivery when the load hits the CPU.

What's odd is the regularity of being able to trigger this with a slicer... I have had one or two instances where I've seen similar behavior when under other loads, but Prusaslicer seems to trigger without fail when slicing a large file. Are there particular instructions that are being used that would behave differently than a standard benchmark or stressing utilities?

@jcleek
Copy link

jcleek commented Mar 2, 2024

Replaced my processor today with a i9-14900K and immediately tried to slice the same model I have been having issues with this week. Sliced without issue. I put in more and more complexity in the slicing and it didn't fail or crash one time. Guess it is time to reach out to Intel to get a replacement or refund.

@laurentslab
Copy link

In the BIOS I changed: EXPERT -> AI TWEAKER -> SVID BEHAVIOR -> INTEL'S FAIL SAFE

PrusaSlicer now works as expected.

13900K on an Asus Z790 ProArt. Same issue and this suggestion fixes the problem. I picked SVID > Worst Case, which also works on my config.

@ke19lly
Copy link

ke19lly commented Mar 11, 2024

I was able to fix this by limiting the Program to my 14900K cores 0-7. My steps are as follows: open task manager, go to the details pane, scroll down to find Prusaslicer, right-click Prusaslicer and select set affinity, select only cores 0-7 or the respective amount for lower-end LGA 1700 chips, then confirm the selection and Prusaslicer works as expected.

@jcleek
Copy link

jcleek commented Mar 11, 2024

@ke19lly that only works per session. If I close Prusa Slicer and reopen I have to do that again. Any chance you found a more permanent "fix"?

@ke19lly
Copy link

ke19lly commented Mar 11, 2024 via email

@jcleek
Copy link

jcleek commented Mar 11, 2024

I have a more permanent "fix".

  1. Locate your prusa-slicer.exe file. This is the executable and is likely located here: C:\Program Files\Prusa3D\PrusaSlicer
  2. Right-click it and select CREATE SHORTCUT. If you don't see CREATE SHORTCUT you are on WIN11 and you should first click SHOW MORE OPTIONS -> CREATE SHORTCUT
  3. You will probably see an error that you can't create a shortcut there and ask to create one on the desktop. Answer YES.
  4. Find the shortcut on your desktop. Right-click it and select PROPERTIES.
  5. In the TARGET box add this in front of what is there:
    %ComSpec% /C Start "PrusaSlicer" /Normal /Affinity FF
    So the TARGET box should look something like this:
    %ComSpec% /C Start "PrusaSlicer" /Normal /Affinity FF "C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer.exe"
  6. Click CHANGE ICON
  7. In the top box LOOK FOR ICONS IN THIS FILE put in the path to your prusa-slicer.exe file like this: C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer.exe and press ENTER
  8. You should see the icon for PrusaSlicer. Make sure it is selected and click OK
  9. Click OK
  10. Now double-click the shortcut. Check the affinity by looking at the details in Task Manager as @ke19lly indicated above.

This isn't a fix, just a good workaround for PrusaSlicer.

@ke19lly
Copy link

ke19lly commented Mar 11, 2024 via email

@Taralas
Copy link

Taralas commented Mar 19, 2024

I opened an issue for the crashing as I was unaware of this thread. Thank you @lukasmatena for your recommendations to test. I only had to make the one change to SVID behavior.

Motherboard: ASUS ROG STRIX Z790E GAM WF D5 Processor: INTEL INTEL I9-13900K RAM: 32GB G.SKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 32GB (2x16GB) 6400MT/s CL32-39-39-102 1.40V Desktop Computer Memory UDIMM Video Card: ASUS ROG Strix NVIDIA GeForce RTX™ 4070 Ti OC Edition Gaming Graphics Card

OS: Windows 11 Pro Version 22H2, OS build 22621.3155, Windows Feature Experience Pack 1000.22684.1000.0

PrusaSlicer: Version 2.7.1+win64

In the BIOS I changed: EXPERT -> AI TWEAKER -> SVID BEHAVIOR -> INTEL'S FAIL SAFE

PrusaSlicer now works as expected.

Same result here. with a slightly different motherboard, memory, and GPU:

Motherboard: ASUS ROG MAXIMUS Z790 FORMULA
Processor: INTEL INTEL I9-14900K
RAM: 64GB G.SKILL Trident Z5 RGB Series (Intel XMP 3.0) DDR5 RAM 32GB (2x16GB) 6400MT/s CL30-40-40-96 1.40V Desktop Computer Memory UDIMM
Video Card: ASUS TUF GeForce RTX™ 3090

@arnfiix
Copy link

arnfiix commented Apr 28, 2024

I have a more permanent "fix".

  1. Locate your prusa-slicer.exe file. This is the executable and is likely located here: C:\Program Files\Prusa3D\PrusaSlicer
  2. Right-click it and select CREATE SHORTCUT. If you don't see CREATE SHORTCUT you are on WIN11 and you should first click SHOW MORE OPTIONS -> CREATE SHORTCUT
  3. You will probably see an error that you can't create a shortcut there and ask to create one on the desktop. Answer YES.
  4. Find the shortcut on your desktop. Right-click it and select PROPERTIES.
  5. In the TARGET box add this in front of what is there:
    %ComSpec% /C Start "PrusaSlicer" /Normal /Affinity FF
    So the TARGET box should look something like this:
    %ComSpec% /C Start "PrusaSlicer" /Normal /Affinity FF "C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer.exe"
  6. Click CHANGE ICON
  7. In the top box LOOK FOR ICONS IN THIS FILE put in the path to your prusa-slicer.exe file like this: C:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer.exe and press ENTER
  8. You should see the icon for PrusaSlicer. Make sure it is selected and click OK
  9. Click OK
  10. Now double-click the shortcut. Check the affinity by looking at the details in Task Manager as @ke19lly indicated above.

This isn't a fix, just a good workaround for PrusaSlicer.

This fixed (or at least bypassed) the issue for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests