Skip to content

Stack overflow on launch #3

Description

@slushie0

Terminal log:

$ cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 11s
     Running `target\debug\voxel_ray_traversal.exe`
Using device: AMD Radeon(TM) Graphics (type: IntegratedGpu)

thread 'main' (20408) has overflowed its stack
error: process didn't exit successfully: `target\debug\voxel_ray_traversal.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)

This may be a hardware-specific problem (my integrated GPU), but it is possible to fix:

creating .cargo/config.toml:

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-args=/STACK:67108864"]

After recompiling, it ran fine.

System information:

OS Name              Microsoft Windows 11 Pro
Version              10.0.26200 Build 26200
System Manufacturer  Gigabyte Technology Co., Ltd.
System Model	     B550M DS3H AC
System Type          x64-based PC
Processor	         AMD Ryzen 5 5600G with Radeon Graphics, 3901 Mhz, 6 Core(s), 12 Logical Processor(s)
Installed Physical Memory (RAM)     16.0 GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions