comet panics when I pick up pen too close to head

6 Replies
sam bilbow
sam bilbowOP2y 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
Nova2y ago
that is very weird
sam bilbow
sam bilbowOP2y ago
thanks, solved ✅ 😂 steps to fix: move head
Nova
Nova2y ago
that's still a bug
sam bilbow
sam bilbowOP2y 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
Nova2y 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