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

Veloren metal assertion failed: Greater == Equal #1364

Closed
bronson opened this issue May 2, 2021 · 4 comments
Closed

Veloren metal assertion failed: Greater == Equal #1364

bronson opened this issue May 2, 2021 · 4 comments
Labels
external: upstream Issues happening in lower level APIs or platforms

Comments

@bronson
Copy link

bronson commented May 2, 2021

Started Veloren's wgpu branch with --features wgpu/cross on a 16" Macbook pro (core i9, and either Intel UHD Graphics 630 1536MB or Radeon Pro 5500M 4GB)

It crashed:

Panic Payload: "assertion failed: `(left == right)`\n  left: `Greater`,\n right: `Equal`"
PanicInfo: panicked at 'assertion failed: `(left == right)`
  left: `Greater`,
 right: `Equal`', /Users/bronson/.cargo/registry/src/github.com-1ecc6299db9ec823/gpu-alloc-0.4.4/src/freelist.rs:201:9

Here's the trace from the crash:
trace-cross.zip

And the console output:

Console Log ``` veloren % WGPU_TRACE_DIR=trace-cross cargo run --features wgpu/cross Finished dev [optimized] target(s) in 0.41s Running `target/debug/veloren-voxygen` May 02 14:15:37.931 INFO veloren_common_frontend: Setup terminal and file logging. path="/Users/bronson/veloren/userdata/voxygen/logs" file="voxygen.log" May 02 14:15:37.931 INFO veloren_voxygen: Using userdata dir at: /Users/bronson/veloren/userdata May 02 14:15:37.931 INFO veloren_common::assets: Assets found path=/Users/bronson/veloren/assets May 02 14:15:39.108 INFO wgpu_core::instance: Adapter Metal AdapterInfo { name: "AMD Radeon Pro 5500M", vendor: 0, device: 0, device_type: DiscreteGpu } May 02 14:15:39.109 WARN wgpu_core::instance: Missing internal features: ROBUST_BUFFER_ACCESS May 02 14:15:39.109 INFO wgpu_core::command::allocator: Starting on (internal) thread ThreadId(1) May 02 14:15:39.109 INFO veloren_voxygen::render::renderer: The features for GPU profiling (timestamp queries) are not available on this adapter May 02 14:15:39.109 INFO veloren_voxygen::render::renderer: selected graphics device info.name="AMD Radeon Pro 5500M" info.vendor=0 info.backend=Metal info.device=0 info.device_type=DiscreteGpu May 02 14:15:39.109 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 2560, height: 1440 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:39.152 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.153 INFO naga::front::spv: Patching... May 02 14:15:39.153 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.153 INFO naga::front::spv: Patching... May 02 14:15:39.173 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.173 INFO naga::front::spv: Patching... May 02 14:15:39.173 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.173 INFO naga::front::spv: Patching... May 02 14:15:39.185 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.185 WARN wgpu_core::device: Failed to parse shader SPIR-V code: InvalidAccess(Binary { op: And, left: [69], right: [35] }) May 02 14:15:39.185 WARN wgpu_core::device: Proceeding unsafely without validation May 02 14:15:39.185 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.255 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.255 INFO naga::front::spv: Patching... May 02 14:15:39.255 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.256 INFO naga::front::spv: Patching... May 02 14:15:39.268 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.268 INFO naga::front::spv: Patching... May 02 14:15:39.268 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.269 INFO naga::front::spv: Patching... May 02 14:15:39.338 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.339 INFO naga::front::spv: Patching... May 02 14:15:39.339 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.339 INFO naga::front::spv: Patching... May 02 14:15:39.345 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.345 INFO naga::front::spv: Patching... May 02 14:15:39.345 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.345 INFO naga::front::spv: Patching... May 02 14:15:39.459 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.460 INFO naga::front::spv: Patching... May 02 14:15:39.460 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.460 INFO naga::front::spv: Patching... May 02 14:15:39.475 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.475 WARN naga::front::spv: Unknown decoration Restrict May 02 14:15:39.475 WARN naga::front::spv: null constant type Matrix { columns: Quad, rows: Quad, width: 4 } May 02 14:15:39.475 WARN wgpu_core::device: Failed to parse shader SPIR-V code: UnsupportedType([3]) May 02 14:15:39.475 WARN wgpu_core::device: Proceeding unsafely without validation May 02 14:15:39.476 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.476 WARN naga::front::spv: Unknown decoration Restrict May 02 14:15:39.476 WARN naga::front::spv: null constant type Matrix { columns: Quad, rows: Quad, width: 4 } May 02 14:15:39.534 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.535 INFO naga::front::spv: Patching... May 02 14:15:39.535 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.535 INFO naga::front::spv: Patching... May 02 14:15:39.636 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.637 INFO naga::front::spv: Patching... May 02 14:15:39.637 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.637 INFO naga::front::spv: Patching... May 02 14:15:39.684 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.684 INFO naga::front::spv: Patching... May 02 14:15:39.684 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.684 INFO naga::front::spv: Patching... May 02 14:15:39.690 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.691 INFO naga::front::spv: Patching... May 02 14:15:39.691 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.691 INFO naga::front::spv: Patching... May 02 14:15:39.694 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.694 INFO naga::front::spv: Patching... May 02 14:15:39.694 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.694 INFO naga::front::spv: Patching... May 02 14:15:39.721 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.721 INFO naga::front::spv: Patching... May 02 14:15:39.721 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.721 INFO naga::front::spv: Patching... May 02 14:15:39.840 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.840 INFO naga::front::spv: Patching... May 02 14:15:39.840 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.841 INFO naga::front::spv: Patching... May 02 14:15:39.844 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.844 INFO naga::front::spv: Patching... May 02 14:15:39.844 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.844 INFO naga::front::spv: Patching... May 02 14:15:39.901 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.901 INFO naga::front::spv: Patching... May 02 14:15:39.901 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.902 INFO naga::front::spv: Patching... May 02 14:15:39.904 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.904 INFO naga::front::spv: Patching... May 02 14:15:39.904 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.905 INFO naga::front::spv: Patching... May 02 14:15:39.923 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 INFO naga::front::spv: Patching... May 02 14:15:39.923 WARN naga::front::spv: Unused item decorations: {765: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 791: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 747: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 776: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 840: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 802: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 650: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 743: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 746: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 842: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }} May 02 14:15:39.923 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 WARN naga::front::spv: Unknown decoration RelaxedPrecision May 02 14:15:39.923 INFO naga::front::spv: Patching... May 02 14:15:39.923 WARN naga::front::spv: Unused item decorations: {765: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 791: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 747: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 776: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 840: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 802: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 650: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 743: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 746: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }, 842: Decoration { name: None, built_in: None, location: None, desc_set: None, desc_index: None, specialization: None, block: None, offset: None, array_stride: None, matrix_stride: None, matrix_major: None, interpolation: None, sampling: None, flags: (empty) }} May 02 14:15:39.925 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.925 INFO naga::front::spv: Patching... May 02 14:15:39.925 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.925 INFO naga::front::spv: Patching... May 02 14:15:39.927 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.927 INFO naga::front::spv: Patching... May 02 14:15:39.927 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.927 INFO naga::front::spv: Patching... May 02 14:15:39.930 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.930 INFO naga::front::spv: Patching... May 02 14:15:39.930 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.930 INFO naga::front::spv: Patching... May 02 14:15:39.934 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.934 INFO naga::front::spv: Patching... May 02 14:15:39.934 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.934 INFO naga::front::spv: Patching... May 02 14:15:39.938 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.938 INFO naga::front::spv: Patching... May 02 14:15:39.938 INFO naga::front::spv: Generated by 851976 version 10000 May 02 14:15:39.938 INFO naga::front::spv: Patching... May 02 14:15:39.940 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.943 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.944 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.944 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.946 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.950 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.952 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.955 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.961 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.963 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.964 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.973 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.978 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.979 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.981 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.984 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.985 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:39.988 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.006 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.008 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.012 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.013 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.031 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.033 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.034 INFO gfx_backend_metal::device: Entry point EntryPoint { name: "main", execution_model: Fragment, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } May 02 14:15:40.036 WARN veloren_voxygen::window: Failed to construct the scancode to keyname mapper, falling back to displaying Unknown(). err=PlatformUnsupportedError May 02 14:15:40.672 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.674 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.675 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.676 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.677 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.678 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.679 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.680 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.681 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.682 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.682 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.683 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.684 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.686 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.686 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.687 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.688 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.689 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.690 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.691 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:40.692 INFO gfx_backend_metal::window: build swapchain SwapchainConfig { present_mode: IMMEDIATE, composite_alpha_mode: OPAQUE, format: Bgra8Srgb, extent: Extent2D { width: 3584, height: 2134 }, image_count: 3, image_layers: 1, image_usage: COLOR_ATTACHMENT } May 02 14:15:44.030 INFO veloren_server: Server is data dir is: /Users/bronson/veloren/userdata/singleplayer May 02 14:15:44.030 INFO veloren_server: Authentication is disabled May 02 14:15:44.034 INFO refinery_core::traits: current version: 36 May 02 14:15:44.034 INFO refinery_core::traits::sync: no migrations to apply May 02 14:15:44.034 INFO veloren_server::persistence: Applied 0 database migrations May 02 14:15:44.035 INFO veloren_common_state::plugin: Searching "/Users/bronson/veloren/assets/plugins" for plugins... May 02 14:15:44.035 INFO veloren_common_state::state: Plugins disabled, enable debug logging for more information. May 02 14:15:44.853 ERROR veloren_voxygen: VOXYGEN HAS PANICKED

A critical error has occurred and Voxygen has been forced to terminate in an unusual manner. Details about the error can be found below.

What should I do?

We need your help to fix this! You can help by contacting us and reporting this problem. To do this, open an issue on the Veloren issue tracker:

https://www.gitlab.com/veloren/veloren/issues/new

If you're on the Veloren community Discord server, we'd be grateful if you could also post a message in the #support channel.

What should I include?

The error information below will be useful in finding and fixing the problem. Please include as much information about your setup and the events that led up to the panic as possible.

Voxygen has logged information about the problem (including this message) to the file /Users/bronson/veloren/userdata/voxygen/logs/voxygen-.log. Please include the contents of this file in your bug report.

Error information

The information below is intended for developers and testers.

Panic Payload: "assertion failed: (left == right)\n left: Greater,\n right: Equal"
PanicInfo: panicked at 'assertion failed: (left == right)
left: Greater,
right: Equal', /Users/bronson/.cargo/registry/src/github.com-1ecc6299db9ec823/gpu-alloc-0.4.4/src/freelist.rs:201:9
Game version: b5d1f382 [2021-05-01]

Backtrace:
0: backtrace::capture::Backtrace::create
1: backtrace::capture::Backtrace::new
2: veloren_voxygen::main::{{closure}}
3: std::panicking::rust_panic_with_hook
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/std/src/panicking.rs:595:17
4: std::panicking::begin_panic_handler::{{closure}}
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/std/src/panicking.rs:497:13
5: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/std/src/sys_common/backtrace.rs:141:18
6: rust_begin_unwind
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/std/src/panicking.rs:493:5
7: core::panicking::panic_fmt
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/core/src/panicking.rs:92:14
8: core::panicking::assert_failed_inner
at /rustc/f82664191d0e8764b7435b9d72eb0e366b8b1464/library/core/src/panicking.rs:160:17

May 02 14:15:54.733 INFO veloren_world::civ: all civilisations created initial_civ_count=48
May 02 14:15:56.548 INFO veloren_world::civ: all sites placed cnt=192
May 02 14:15:57.075 INFO veloren_world::sim2: economy simulation start
May 02 14:16:03.391 INFO veloren_world::sim2: economy simulation end
May 02 14:16:03.391 INFO veloren_world::sim2: Towns 4-5978412 avg 1929788 inhabitants
May 02 14:16:03.391 INFO veloren_world::sim2: Castles 32-32 avg 32
May 02 14:16:03.391 INFO veloren_world::sim2: Dungeons 32-32 avg 32
May 02 14:16:03.391 INFO veloren_world::sim2: Coin amount 4026218000 + 0 = 4026218000
May 02 14:16:04.803 INFO prometheus_hyper: starting hyper server to serve metrics
May 02 14:16:04.805 INFO veloren_server::rtsim: Initiated real-time world simulation
May 02 14:16:04.805 INFO veloren_server: Server version version="Pre-Alpha-2021-05-01 (b5d1f382)"
May 02 14:16:04.805 INFO veloren_voxygen::singleplayer: Starting server-cli...
zsh: terminated WGPU_TRACE_DIR=trace-cross cargo run --features wgpu/cross

</details>
@bronson
Copy link
Author

bronson commented May 2, 2021

Forgot to mention: Veloren wgpu starts fine and looks great. It crashes immediately and 100% reliably after clicking the Single Player button to start a single player game.

@bronson bronson changed the title Veloren metal crash: Veloren metal assertion failed: Greater == Equal May 2, 2021
@kvark kvark transferred this issue from gfx-rs/wgpu-rs May 3, 2021
@kvark kvark added the external: upstream Issues happening in lower level APIs or platforms label May 3, 2021
@kvark
Copy link
Member

kvark commented May 3, 2021

Created zakarumych/gpu-alloc#46

@zakarumych
Copy link

Run cargo update. Should be fine now.

@bronson
Copy link
Author

bronson commented May 3, 2021

Yes!! Fixed and looking buttery smooth. Very impressive.

@bronson bronson closed this as completed May 3, 2021
Patryk27 pushed a commit to Patryk27/wgpu that referenced this issue Nov 23, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external: upstream Issues happening in lower level APIs or platforms
Projects
None yet
Development

No branches or pull requests

3 participants