Skip to content

Aw Snap in Dartium / DartVM #11815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Jul 13, 2013 · 3 comments
Closed

Aw Snap in Dartium / DartVM #11815

DartBot opened this issue Jul 13, 2013 · 3 comments

Comments

@DartBot
Copy link

DartBot commented Jul 13, 2013

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.

@iposva-google
Copy link
Contributor

Added Area-Dartium, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Aug 10, 2013

This comment was originally written by @bp74


With the latest release of the Dart Editor this issue is fixed.

@a-siva
Copy link
Contributor

a-siva commented Aug 26, 2013

Marking bug as fixed per comment from bernhard.robert.pichler


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants