Unable to catch exception in wgpuDeviceSetUncapturedErrorCallback
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- computer-graphics
Research direction
Start at gpu.h#L791 and trace how wgpuDeviceSetUncapturedErrorCallback reports errors when dispatchKernel is called. Reproduce the failure with a try-catch around dispatchKernel, then verify that the intended exception behavior works across the reported thread boundary.
Written by the indexing model from the issue text.
Description
When calling dispatchKernel throws the runtime exception in wgpuDeviceSetUncapturedErrorCallback, try-catch around dispatchKernel does not catch the exception.
https://github.com/AnswerDotAI/gpu.cpp/blob/main/gpu.h#L791
A thread other than the main thread may be throwing the exception.
https://stackoverflow.com/questions/25282620/catching-exception-from-worker-thread-in-the-main-thread
- Dominant language
- C++
- Stars
- 4k
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AnswerDotAI/gpu.cpp
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
AnswerDotAI/gpu.cpp#72 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
AnswerDotAI/gpu.cpp#48 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
AnswerDotAI/gpu.cpp#45 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
AnswerDotAI/gpu.cpp#42 · 8 comments ·
-
Python bindings Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
AnswerDotAI/gpu.cpp#21 · 6 comments · 1 reaction ·
All issues in AnswerDotAI/gpu.cpp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google/libultrahdr#485 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
godotengine/godot#123776 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 60/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ros2/common_interfaces#344 ·