comet panics when I pick up pen too close to head

6 Replies
sam bilbow
sam bilbow17mo ago
Also panics when I pick up the pen in comet without gravity. Hmmmmmm :think_200iq: line 187 in comet:
let current_stroke = self.strokes.last_mut().unwrap();
current_stroke.points.push(LinePoint {
point,
thickness: self.settings.thickness * strength,
color: rgba!(1.0, 0.0, 0.0, 1.0),
});
let current_stroke = self.strokes.last_mut().unwrap();
current_stroke.points.push(LinePoint {
point,
thickness: self.settings.thickness * strength,
color: rgba!(1.0, 0.0, 0.0, 1.0),
});
It looks like comet only works if both hands are being tracked It looks like the crash is caused when you pick up the pen too close to the headset on first launch. Once picked up and used, the distance to the headset doesnt matter for subsequent pick ups
Nova
Nova17mo ago
that is very weird
sam bilbow
sam bilbow17mo ago
thanks, solved ✅ 😂 steps to fix: move head
Nova
Nova17mo ago
that's still a bug
sam bilbow
sam bilbow17mo ago
So its panicking because self.strokes.lat_mut() is None @Nova Message: called Option::unwrap() on a None value let current_stroke = self.strokes.last_mut().unwrap();
Nova
Nova17mo ago
oh this should be easy to fix now 1 moment the reason it was hard is that I couldn't reproduce the bug to find where it was
Want results from more Discord servers?
Add your server