flutter icon indicating copy to clipboard operation
flutter copied to clipboard

Access disposed canvas in VM causes segfault

Open dnfield opened this issue 1 year ago • 0 comments

This code causes a segfault currently:

test('use canvas after endRecording', () {
  final PictureRecorder recorder = PictureRecorder();
  final Canvas canvas = Canvas(recorder);
  final Picture picture = recorder.endRecording();
  canvas.restore();
});

The final call to canvas.restore should be an error but not a crash.

@c-h-i-a-m-a-k-a-2 fyi

dnfield avatar Aug 08 '22 21:08 dnfield