You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application below gives you an 'Aw Snap' in Dartium if you run it in unchecked mode. It runs fine in checked mode and in JavaScript.
import 'dart:html';
void main() {
for(int i = 0; i < 10; i++) {
test();
}
}
void test() {
var canvas = new CanvasElement(width:100, height:100);
var context = canvas.context2D;
var imageData = context.getImageData(0, 0, 100, 100);
var data = imageData.data;
for(var i = 0; i < data.length; i++) {
data[i] = 128;
}
This issue was originally filed by @bp74
What steps will reproduce the problem?
The application below gives you an 'Aw Snap' in Dartium if you run it in unchecked mode. It runs fine in checked mode and in JavaScript.
import 'dart:html';
void main() {
for(int i = 0; i < 10; i++) {
test();
}
}
void test() {
var canvas = new CanvasElement(width:100, height:100);
var context = canvas.context2D;
var imageData = context.getImageData(0, 0, 100, 100);
var data = imageData.data;
for(var i = 0; i < data.length; i++) {
data[i] = 128;
}
context.putImageData(imageData, 0, 0);
document.body.children.add(canvas);
document.body.children.add(new Element.br());
}
What is the expected output? What do you see instead?
The application should run in Dartium in unchecked mode.
What version of the product are you using? On what operating system?
Dart Editor version 0.1.2_r24987
Dart SDK version 0.1.2.0_r24987
Windows 7, 64 bit
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: