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

-Ztimings can create gigantic canvases #7399

Closed
est31 opened this issue Sep 21, 2019 · 1 comment
Closed

-Ztimings can create gigantic canvases #7399

est31 opened this issue Sep 21, 2019 · 1 comment

Comments

@est31
Copy link
Member

est31 commented Sep 21, 2019

One of my projects is a bit bigger and takes a long time to compile (17m 15s for total of 326 dependencies). When I ran -Ztimings on it, it outputted a file that allocated a gigantic canvas.

In Firefox, the canvas is simply not shown. Instead, the console has an NS_ERROR_FAILURE pointing to this js line and this can be found in Firefox stdout:

[GFX1-]: Failed to allocate a surface due to invalid size (CDT) Size(20780,8842)

So it's trying to allocate a buffer of size 20780x8842.

Chrome is trying to render the canvas but fails due to memory constraints on the computer I was trying it on (3 GB was available at the time of opening).

IDK what a good remedy would be. Maybe using native html items instead?

@est31
Copy link
Member Author

est31 commented Sep 21, 2019

Hmm dupe of #7388

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