Add proper panic handling

Open
#346 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 12 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
rust
Domain
desktop

Research direction

Start by tracing the FFI layers and the WindowHandler boundary where callbacks cross into host-side window interaction. The issue leaves the precise panic-catching and resumption behavior undecided; first establish those requirements with maintainers. Done means panics do not cross the FFI boundary and are resumed during host-side interaction.

Written by the indexing model from the issue text.

Description

Currently, there are many "holes" in Baseview's various FFI layers, where a panic is not properly handled, crosses the FFI boundary, and ends up aborting the whole process.

Panics should be caught at least at the FFI boundary (or preferably, closer to the WindowHandler boundary), and should be resumed past the FFI boundary when the Window is interacted with host-side. (The specifics of which are TBD)

Dominant language
Rust
Stars
387
Forks
128
Avg merge
11d 18h
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/baseview

All issues in RustAudio/baseview

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.