Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Last active July 18, 2020 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peteristhegreat/9263283ecefc7e6caca620b7d2f30f50 to your computer and use it in GitHub Desktop.
Save peteristhegreat/9263283ecefc7e6caca620b7d2f30f50 to your computer and use it in GitHub Desktop.
Cura with AMD Crashes Computer, workaround

Windows 10 Virtualization/Container OptionalFeatures have an issue with Cura 3d printing software

Running Cura on my computer would work fine, until a few hours later my graphics card would freeze up and wouldn't register anything.

After a reboot everything would be fine until the next time I launched Cura, it was like a time bomb.

All this has been happening with Ultimaker_Cura-4.6.2-amd64.exe on Windows 10.

https://community.ultimaker.com/topic/26654-cura-crashes-my-entire-computer/

https://community.ultimaker.com/topic/28582-cura-41-keeps-crashing/

A variety of other people are having similar problems and one suggested solution was to run Cura in a VM.

https://community.ultimaker.com/topic/26654-cura-crashes-my-entire-computer/?do=findComment&comment=255033

The final comment on the thread suggests turning off the Containerization feature in Windows 10. THAT WORKS!

If you need containerization for docker and don't want to get rid of that feature, consider running Cura in a VM like VirtualBox.

VM Solution, Install Linux Mint in a VM, then install Cura

After a lot of trial and error with VirtualBox versions, VirtualBox 6.0.6 is works with the latest Linux Mint.

Some other prerequisites of using VirtualBox include checking what optional features of windows are running:

https://superuser.com/questions/1391838/virtual-box-is-not-working-on-windows-10

https://silicophilic.com/virtualbox-not-working/

Here is a link were I talk about the VirtualBox 6.0.6 version:

https://gist.github.com/peteristhegreat/6b5bf3106b392b9f0062bc4fdbe72cff

So after you have a version of VirtualBox installed grab a copy of Linux Mint or get a premade VDI.
I went the premade VDI route.

On this page click the tab for VirtualBox and select one of the versions. Xfce is less graphics heavy, so may be a good candidate for virtualization.

https://www.osboxes.org/linux-mint/#linux-mint-19-2-vbox

https://sourceforge.net/projects/osboxes/files/v/vb/31-Lx-M-t/19.2/Xfce/19_2X-64bit.7z/download

Using 7zip, extract the image for Linux Mint from osboxes.org to somewhere easy to find.

In virtual select New.

I gave mine: Call it mint, with 4096 MB of RAM and select an existing harddisk.

Find the VDI file you extracted with 7zip.

Open it up and let it boot up. It will be windowed pretty small so you need to install Guest Additions to get it to go full screen.

Follow these instructions and Guest Additions will be ready to go quickly:

https://linuxize.com/post/how-to-install-virtualbox-guest-additions-in-ubuntu/

Basically attach the Guest Additions from the VirtualBox menus, then open a terminal in Mint and put in these commands:

sudo apt update; sudo apt install build-essential dkms linux-headers-$(uname -r)
sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
sudo sh ./VBoxLinuxAdditions.run --nox11

Now you have Linux in Windows and full screen!

The version of cura in the default repositories is Cura 3.1 . You can use that one, but it doesn't include most of the newer printer configurations.

To get the latest one go here and download the link for Linux:

Go thru Git Hub if you are browsing on Windows...

https://github.com/Ultimaker/Cura/tags

https://github.com/Ultimaker/Cura/releases/download/4.6.2/Ultimaker_Cura-4.6.2.AppImage

Or on Firefox in Linux, open the main downloads page on the Ultimaker's Software portal

https://ultimaker.com/software/ultimaker-cura

https://software.ultimaker.com/cura/Ultimaker_Cura-4.6.2.AppImage

After you have downloaded the .AppImage file, you need to run it. You can made it executable with an option in the Properies right click menu (a checkbox near the bottom) or from the commandline put this in:

chmod u+x ~/Downloads/Ultimaker_Cura-4.6.2.AppImage

Double click it the .AppImage file and you now have Cura 4.x running in Linux with protection!

Install to /opt

sudo mv ~/Downloads/Ultimaker_Cura-4.6.2.AppImage /opt/
sudo chmod a+x /opt/Ultimaker_Cura-4.6.2.AppImage
ln -s /opt/Ultimaker_Cura-4.6.2.AppImage /usr/bin/cura

Replace osboxes user, rename hostname

USER=bob
sudo adduser --ingroup staff $USER
# type in a new password
sudo adduser $USER sudo
sudo adduser $USER vboxsf

Log out as osboxes, log in as the new user

sudo hostname mintbox
sudo deluser --remove-home osboxes
sudo pkill -u osboxes
sudo deluser --remove-home osboxes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment