Skip to content
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

Dartium gives "Aw, snap!" when debugging, presumably because of a default constructor #4578

Closed
DartBot opened this issue Aug 17, 2012 · 3 comments
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 17, 2012

This issue was originally filed by [email protected]


Dart Editor
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595

Chromium
Version 23.0.1234.0 (151225)

Given the following code:

    #import('dart:html'); // Things to show:
                                                    // Autocomplete
    class Ninja { // Jump to definition
      void attack() { // Static typing
        showMessage("My sword is deadly!"); // Rename
      } // Dartium
    } // Debugging
                                                    // Compiling to JavaScript
    class Pirate {
      void attack() {
        showMessage("Arrr! You're already dead!");
      }
    }

    void main() {
      var warriors = [new Ninja(), new Pirate()];
      for (var warrior in warriors) {
        warrior.attack();
      }
      
      var ninja = new Ninja();
      ninja.attack();
    }

    void showMessage(String message) {
      var div = query('#text');
      div.text = "${div.text} $message";
    }

If you add a breakpoint on "var ninja = new Ninja();" and then run the app, Dartium will crash with an "Aw, snap!" message. It works if you put the breakpoint on other lines. I suspect it may have to do with the fact that Ninja has a default constructor.

@DartBot
Copy link
Author

DartBot commented Aug 22, 2012

This comment was originally written by [email protected]


Pavel, may you, please, have a look?


Set owner to [email protected].
Added this to the M1 milestone.

@DartBot
Copy link
Author

DartBot commented Sep 4, 2012

This comment was originally written by [email protected]


I couldn't reproduce this crash. Could you please check with the latest version? If it still crashes for you, please provide about:version page contents.


Set owner to [email protected].
Added NeedsInfo label.

@DartBot
Copy link
Author

DartBot commented Sep 5, 2012

This comment was originally written by [email protected]


I am no longer able to reproduce this. It must have been fixed. Marking as verified.

Dart Editor
Version 0.1.0.201208261548, build 11367
Dart SDK version 11367


Added Verified 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

1 participant