bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Relative Cursor Position demo : crash

Open XavDesbordes opened this issue 1 year ago • 1 comments

Linux, latest browsers.

Hi, https://bevyengine.org/examples/ui-user-interface/relative-cursor-position/ crash with:

wgpu-0.20.1/src/backend/wgpu_core.rs:2996:5:
wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(1, 1, Gl)>`
    In a set_viewport command
    Viewport has invalid rect Rect { x: 200.0, y: 100.0, w: 600.0, h: 600.0 }; origin and/or size is less than or equal to 0, and/or is not contained in the render target (1168, 657, 1)



Stack:

__wbg_get_imports/imports.wbg.__wbg_new_abda76e883ba8a5f@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:1860:21
@:wasm-function[53247]:0x1275738
@:wasm-function[15548]:0xfa84fa
@:wasm-function[28840]:0x11c7962
@:wasm-function[15402]:0xfa2428
@:wasm-function[27524]:0x11b2aa3
@:wasm-function[21312]:0x1099e25
@:wasm-function[10576]:0xdbab94
@:wasm-function[556]:0x1c5504
@:wasm-function[556]:0x1c55c7
@:wasm-function[24896]:0x10f167a
@:wasm-function[51586]:0x12659ee
@:wasm-function[2089]:0x7218a1
@:wasm-function[14698]:0xf38fd5
@:wasm-function[4629]:0x9ef74d
@:wasm-function[10855]:0xdd310c
@:wasm-function[7172]:0xc1eefc
@:wasm-function[3046]:0x8206fc
@:wasm-function[5021]:0xa4521d
@:wasm-function[32382]:0x11f8692
@:wasm-function[32163]:0x11f64ee
__wbg_adapter_37@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:229:10
real@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:210:20

and

panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.4/src/platform_impl/web/event_loop/runner.rs:627:30:
already borrowed: BorrowMutError

Stack:

__wbg_get_imports/imports.wbg.__wbg_new_abda76e883ba8a5f@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:1860:21
@:wasm-function[53247]:0x1275738
@:wasm-function[15548]:0xfa84fa
@:wasm-function[28840]:0x11c7962
@:wasm-function[54887]:0x13298fe
@:wasm-function[26212]:0x1109cd7
@:wasm-function[2791]:0x7f9e88
@:wasm-function[8350]:0xcdb0e5
@:wasm-function[23581]:0x10cfec8
@:wasm-function[32163]:0x11f64ee
__wbg_adapter_37@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:229:10
real@https://bevy-webgl2-examples.pages.dev/UI%20(User%20Interface)/relative-cursor-position/wasm_example.js:210:20


wasm_example.js:1876:21

I didn't test other examples

Thanks,

XavDesbordes avatar Aug 23 '24 13:08 XavDesbordes

What browser and OS are you on?

alice-i-cecile avatar Aug 23 '24 13:08 alice-i-cecile