prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.71k stars 1.93k forks source link

PrusaSlicer-2.3.1+linux-x64-202104161339.AppImage General Protection Fault #6662

Open MichaelEhrlichman opened 3 years ago

MichaelEhrlichman commented 3 years ago

Version

2.3.1

Operating system type + version

Ubuntu 20.04.2 LTS

OpenGL installation GL version: 4.6 (Compatibility Profile) Mesa 21.0.1 Vendor: AMD Renderer: Radeon RX 580 Series (POLARIS10, DRM 3.38.0, 5.8.0-59-generic, LLVM 11.0.0) GLSL version: 4.60

3D printer brand / version + firmware version (if known)

Prusa i3 MK3S+

Behavior

Segmentation fault after slicing. Evidence points to radeon gpu issue.

File -> Open Project -> guard_geodesicdome-crash.3mf Slice Now Crashed with "Segmentation fault (core dumped)" dmesg contains: traps: slic3r_main[71742] general protection fault ip:7f119b44f269 sp:7ffcdcba8670 error:0 in radeonsi_dri.so[7f119a808000+fa7000]

guard_geodesicdome-crash.zip

Occasionally, dmesg contains the following, though I cannot reliably reproduce the appearance of this message: [15219.484681] amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x0d18480c for process slic3r_main pid 17591 thread prusa-slic:cs0 pid 17622 [15219.484683] amdgpu 0000:01:00.0: amdgpu: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x001137A3 [15219.484684] amdgpu 0000:01:00.0: amdgpu: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0E04800C [15219.484685] amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 7, pasid 32788) at page 1128355, read from 'TC4' (0x54433400) (72)

The following avoids the problem, but makes PrusaSlicer runs unbearably slow: LIBGL_ALWAYS_SOFTWARE=true PrusaSlicer-2.3.1+linux-x64-202104161339.AppImage

circuitmike commented 3 years ago

That model slices fine for me on Ubuntu 20.04.2 LTS with an Nvidia GeForce GTX 1060 3GB card. I suspect this is related to your AMD GPU and/or the associated libraries.