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

Graphics.drawCircle not working in Chrome #323

Closed
TheBrownSound opened this issue May 24, 2013 · 8 comments
Closed

Graphics.drawCircle not working in Chrome #323

TheBrownSound opened this issue May 24, 2013 · 8 comments

Comments

@TheBrownSound
Copy link

The Graphics.drawCircle method in easeljs 6.1 is not working and fails silently in the latest release version of Chrome 27.0.1453.93. The shape just doesn't display. Working in Firefox and Safari. Appears to only be the drawCircle method, I haven't found any of the other draw methods to be broken.

@sebastianderossi
Copy link

I have not seen this issue. http://grab.by/mS6y
Can you give more information as to how you are setting up your code.
Give this a shot.

<title></title>
<script src="http://code.createjs.com/easeljs-0.6.1.min.js"></script>

<script>

    var canvas, stage;

    function init() {
        canvas = document.getElementById("testCanvas");
        //check to see if we are running in a browser with touch support
        stage = new createjs.Stage(canvas);

        var ball = new createjs.Shape();
        var g = ball.graphics;
        g.f("#000000").dc(100, 100, 100);
        stage.addChild(ball);
        stage.update();
    }
</script>

@TheBrownSound
Copy link
Author

Either I'm doing something really silly (likely) or the bug is a little more specific than I thought. It only breaks if you are manually setting the width and height attributes of your canvas object AND running chrome in incognito mode... : /

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <script src="http://code.createjs.com/easeljs-0.6.1.min.js"></script>
    <script>

    var canvas, stage;

    function init() {
        canvas = document.getElementById("testCanvas");
        //check to see if we are running in a browser with touch support
        stage = new createjs.Stage(canvas);

        var ball = new createjs.Shape();
        var g = ball.graphics;
        g.f("#000000").dc(100, 100, 100);;
        stage.addChild(ball);
        stage.update();
    }
    </script>
</head>
<body onload="init()">
<canvas id="testCanvas" height="600" width="600"></canvas>
</body>
</html>

Give that a run in incognito and let me know if it breaks for you.

@lannymcnie
Copy link
Member

I copy/pasted this and ran it locally (as well as incognito) and it worked fine.

@gskinner
Copy link
Member

I've tested in the latest version of Chrome using an incognito window on both Mac & Win7 without problem.

We've seen problems with extensions causing problems in the most recent version of Chrome on Win7 - could you try disabling all of your Chrome extensions? If that fixes it, could you try isolating the extension that is causing the problem?

Thanks.

@dynamic-solutions
Copy link

XML Path Finder is the problematic extension. I answered you on GitHub.

Thanks

Aaron Lawson

http://www.dynamic-solutions.co.nz/ http://www.dynamic-solutions.co.nz/uploads/DynamicSolutionsEmailFooter.jpg

P 09 577 1424
18 Ben Lomond Cres, Pakuranga | PO Box 51 869, Pakuranga, Auckland 2010
http://www.dynamic-solutions.co.nz/ www.dynamic-solutions.co.nz

IMPORTANT: The information contained in this message may be legally privileged or confidential. If you appear to have received this in error or are not the named recipient you are notified that any use, copying or distribution of this email message or its attachments is prohibited. Please notify the sender immediately. Thank you. Any views expressed or implied within the email or its attachments are not necessarily the views of Dynamic Solutions Ltd.

From: Grant Skinner [mailto:[email protected]]
Sent: Tuesday, 28 May 2013 2:43 p.m.
To: CreateJS/EaselJS
Subject: Re: [EaselJS] Graphics.drawCircle not working in Chrome (#323)

I've tested in the latest version of Chrome using an incognito window on both Mac & Win7 without problem.

We've seen problems with extensions causing problems in the most recent version of Chrome on Win7 - could you try disabling all of your Chrome extensions? If that fixes it, could you try isolating the extension that is causing the problem?

Thanks.

—
Reply to this email directly or view it on GitHub #323 (comment) .Image removed by sender.

__________ Information from ESET NOD32 Antivirus, version of virus signature database 8382 (20130527) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

@gskinner
Copy link
Member

@dynamic-solutions - this was intended for @TheBrownSound , who reported a similar issue (#323). Looks like you get email notifications from #323 because it is linked from your issue #321.

@dynamic-solutions
Copy link

That’s fine.

Thanks.

Aaron Lawson

http://www.dynamic-solutions.co.nz/ http://www.dynamic-solutions.co.nz/uploads/DynamicSolutionsEmailFooter.jpg

P 09 577 1424
18 Ben Lomond Cres, Pakuranga | PO Box 51 869, Pakuranga, Auckland 2010
http://www.dynamic-solutions.co.nz/ www.dynamic-solutions.co.nz

IMPORTANT: The information contained in this message may be legally privileged or confidential. If you appear to have received this in error or are not the named recipient you are notified that any use, copying or distribution of this email message or its attachments is prohibited. Please notify the sender immediately. Thank you. Any views expressed or implied within the email or its attachments are not necessarily the views of Dynamic Solutions Ltd.

From: Grant Skinner [mailto:[email protected]]
Sent: Tuesday, 28 May 2013 3:03 p.m.
To: CreateJS/EaselJS
Cc: Aaron
Subject: Re: [EaselJS] Graphics.drawCircle not working in Chrome (#323)

@dynamic-solutions https://github.com/dynamic-solutions - this was intended for @TheBrownSound https://github.com/TheBrownSound , who reported a similar issue (#323 #323 ). Looks like you get email notifications from #323 #323 because it is linked from your issue #321 #321 .

—
Reply to this email directly or view it on GitHub #323 (comment) .Image removed by sender.

__________ Information from ESET NOD32 Antivirus, version of virus signature database 8382 (20130527) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

@gskinner
Copy link
Member

Closing this for now.

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

5 participants