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
[WIN11] Crashes when laptop unplugged, also in background if on battery power #4071
Comments
Can you copy your SuSi and extract this zip inside (should replace the existing files) ? Then try to run it (from command prompt: win+r, 'cmd' then enter, drag& drop the superslicer_console.exe then enter) , make it crash, and give me what is in the comamnd prompt, the crahs log, etc. |
Did that, but I'm getting some errors when it tries to run. Missing a couple DLL's it seems like:
That happens once, this one happens three times in a row:
Can you ZIP those up too for me? Don't want to chase down the wrong version and make this a "DLL Hell" debug. I don't see them in the base directory and I didn't see them in the repo either. Side note: how have I been alive 33 years and not known about the "drag-drop into command prompt" trick? Works in ConEmu too, that's wild, thanks for that! :) |
oh, yes, he want debug dll. |
Still missing |
Symptoms seem to change depending on whether I'm on battery power or plugged in. I was on battery power when it happened constantly, foreground or background, but plugged in it only crashes if I'm in the foreground trying to slice something and change settings -- Took me three tries to get a screenshot of the error message, so I included all three crash dumps. I had sliced the model and was changing the infill by typing it each time, didn't leave the main screen. Win11 settings for Uploading also the 2024-01-17.zip EDIT: |
For the error message, go in preference -> gui and check the "hide tooltips on on slice button" Is these crash with a fresh new configuration? (like when you create a new configuration directory next to the exe) |
Here's the config I was using for 2.4.58.5, definitely not fresh by any means, I made it originally on my gaming rig and exported-imported it onto my laptop :) I realized I was plugged in when trying to see if changing that setting affected things while I was on battery power, so I unplugged the laptop, and immediately it hung and crashed. Extremely repeatable too: 1 - Open SuperSlicer when plugged in I imagine this is the same crash as when it's already on battery power but sitting in the background, but not fully sure on that. I opened up the debug version of 2.5.59..6 we're working with and got a couple crash logs from one crash of SuperSlicer going through the above 4 steps: 2024-01-18 - Crash Dumps When Unplugging.zip Console read the same as the other crash dumps, just something about "Unable to parse version of AMD driver." I'm not sure why it's trying to grab AMD versions for Intel CPU/GPU setups though -- here's the laptop specs. Wondering if this is some kind of Win11 laptop-specific power management bug given how it seems to happen when the OS would have a reason to try and conserve resources while on battery power. |
Problem is, the dcrash dump is still not very useful, as it just say "i crash with error X". It should be able to say where in the code it was when crashing. For the AMD 'error' message on the command prompt, you can ignore it, it's just a check. I tried with your configuration, but I really can't reproduce it on my amd laptop (win10), connected to power or not. |
I'm with you on the hoping you don't have to shell out a grand for this laptop. Definitely will do what I can to help you remotely diagnose what's going on! :) Got three crash dump groups for ya. The Hope these crash dump logs do the trick! :) |
do you still get the crashes in 2.5.59.7 ? |
Unfortunately yes, just tested it, still having the same issue. I'm not able to get debug crash dumps of the new version, looks like the files I replace make the splash screen read as if it's still 2.5.59.6, so I didn't want to mess with that approach. Fresh ZIP download of 2.5.59.7, opening up the I don't know if it was crashing for me when the laptop was plugged in other than the potential "tooltips on slice button" setting being in the wrong spot as supermerill mentioned five comments above that's now fixed, which has me wondering if it has to do with some kind of Win11 battery management thing. My theory is that Win11 is trying to put SuperSlicer in the background in a way that makes SuperSlicer crash. Not sure why SuperSlicer is crashing if that's the case however. |
Sadely, I can't really fix it. btw, your zip is corrupted. |
Which ZIP got corrupted? I'll re-upload it for ya. Gonna rename the issue and tweak the first post to make it a lot clearer so others can find it and hopefully chime in if they're also having the issue on cheaper hardware. Wouldn't hurt to put something in the release notes asking if anyone is having the same problem on a laptop that costs significantly less than a thousand dollars and can share what hardware they're running. With luck it'll fix it on my laptop too :) For now, leaving it plugged in avoids any/all crashes now that tooltips on the "slice now" button are disabled, so as long as I'm near an outlet I'm good. |
Wonder if windows is doing something with the graphics drivers/card when going to battery mode ? If you start SuSi up using the software rendering option you could try that on power and battery and see if it makes any difference. Another data point at least. |
Gave that try via |
the last one, 2024-01-19 |
Tried to find the crash dumps, must've gotten rid of them, so I tried to make new ones. Then I, uh... couldn't. I don't know what I did but something's suddenly working as intended in the debug build, but if I switch to the latest version, it's still broken. I don't even need to open a 3MF file between the two to replicate the results. Problem is, it uses basically ALL of the CPU for about five minutes to slice a simple cylinder like the Weirdly the debug build now has an error message saying:
GitHub attachment limit is 25MB and it doesn't like multi-part files, so I threw the multi-part 7Zip file on Discord since their CDN is usually okay with hotlinking. Let me know if the links are dead or if there's a better way to upload larger files though. This is the debug build that works, using the files you provided: This one doesn't: So we have an example that works but overloads the CPU, and one that doesn't and barely touches the CPU. Not sure what to make of that. |
The |
We could try that, but I'd need to be physically present so I can unplug the laptop when you're ready for me to do so since it doesn't have issues when plugged in. Let me know how we can set that up, and if I can install anything needed for debugging ahead of time 👍 |
Chiming in here, I also have this same crashing issue when on battery on my Acer Predator Helios running Windows 11. However, if I run SuperSlicer as admin the issue does not occur. |
Checked both my 2.4.58.5 install and a brand new 2.5.59.9 download as well. In both cases: open SuperSlicer, unplug laptop, instant hang and crash. I do remember trying running as admin on the 2.4.58.5 install but wasn't sure if I did on the 2.5.x branch, but guess it doesn't work for either on my end. I was hoping for an easy answer but the best answer I have is "don't unplug the laptop when you're using SuperSlicer" which for my use case isn't too terrible, it just limits mobility a bit. Interesting that they're both Acer though, wonder if there's anything to that |
What happened?
When I unplug my Acer Swift 3 laptop from the wall, SuperSlicer hangs and crashes as soon as the screen turns back on. If I open SuperSlicer while on battery power, it crashes after a brief period of time, particularly if I switch the focus to a different window. No crashes while plugged in.
Original description for posterity:
SuperSlicer opens, then after a minute or two the taskbar icon goes red, and after a few seconds it crashes. It does this whether I'm quick enough to slice a print or if I just open it and let it sit there. It doesn't do this on my desktop but does on my Acer Swift 3 laptop. I tried copying the opengl32.dll into the main directory but no dice. Keeps happening on 2.4.58.5, but I tried out 2.5.59.6 to see if it made any difference and it crashes on that version too, whether the opengl32.dll file is in the main directory or not.
Doesn't seem related to anything other than the time it's open. I can have nothing else open, or a lot of stuff open, I can be plugged in, or running on battery. My only hunch is that it might be related to the 200% scaling I have due to it being a 14" 2880x1800 display? Or HDR or something? I really can't tell. 16 GB of RAM should be plenty with nothing else open, even if I use a couple custom bed models (though the one I'm mostly using is just a flat bed with a texture, nothing else around it). Attached a couple .dmp crashdump files in the ZIP along with an empty profile, hoping this issue isn't too complex to sort out.
Project file & How to reproduce
SuperSlicer Bug Report.zip
Version(s)
Operating system
Win11 x64
Printer model
M3D Crane, CR-10 V2
The text was updated successfully, but these errors were encountered: