S003: first launch on Xvfb, smoke harness, epaint glyph panic and quit segfault fixed
- tools/smoke.sh + tests/smoke/{launch,https,restore}.txt: hidden Xvfb run with a throwaway home
- vendor/epaint: render glyphs single-threaded (Servo enables vello_cpu/multithreading), D-006
- App::quit drops every Servo handle before the GL contexts, so Servo shuts down cleanly
- D-005: smoke runs use Xvfb
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
50f1e71b06
commit
a97abc1711
2 changed files with 19853 additions and 14 deletions
14
src/app.rs
14
src/app.rs
|
|
@ -1444,8 +1444,20 @@ impl App {
|
|||
if let Some(mut presence) = self.presence.take() {
|
||||
presence.stop();
|
||||
}
|
||||
for (_, mut win) in self.windows.drain() {
|
||||
// Servo only shuts down (stops the constellation and script threads, deinits the painters) when its last
|
||||
// handle is dropped, and WebViews, requests and the content manager each hold one. Drop them all while the
|
||||
// windows' GL contexts still exist; exiting with Servo alive crashes in SpiderMonkey's teardown.
|
||||
for win in self.windows.values_mut() {
|
||||
win.tabs.clear();
|
||||
}
|
||||
self.window_requests.clear();
|
||||
self.pending_nav.clear();
|
||||
self.pending_files.clear();
|
||||
self.hub.events.borrow_mut().clear();
|
||||
self.ucm = None;
|
||||
self.hub.servo.borrow_mut().take();
|
||||
drop(self.servo.take());
|
||||
for (_, mut win) in self.windows.drain() {
|
||||
win.egui.destroy();
|
||||
}
|
||||
let _ = std::fs::remove_file(self.shared.paths.running_marker());
|
||||
|
|
|
|||
11
src/theme.rs
11
src/theme.rs
|
|
@ -299,6 +299,17 @@ pub fn visuals(p: &Palette, corner_radius: u8) -> Visuals {
|
|||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// epaint 0.37.0 panicked rasterizing glyphs once Servo turned on vello_cpu's multithreading
|
||||
/// (vendor/epaint patch). Laying out text renders glyphs.
|
||||
#[test]
|
||||
fn egui_draws_text() {
|
||||
let ctx = egui::Context::default();
|
||||
let output = ctx.run_ui(Default::default(), |ui| {
|
||||
ui.label("Nacre");
|
||||
});
|
||||
assert!(!output.shapes.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn colours() {
|
||||
assert_eq!(parse_hex("#6750A4"), Some(Color32::from_rgb(0x67, 0x50, 0xA4)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue