New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623038 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Compat



Sign in to add a comment

Canvas dissapears after trying to capture and upload an image

Reported by gzk...@gmail.com, Jun 24 2016

Issue description

Example URL:
https://nexil.co.il

Steps to reproduce the problem:
1. open the page and the canvas is displayed correctly
2. try to capture and upload an image
3. return to the page to review the image and the canvas disappears

What is the expected behavior?
the canvas should not be affected as the image upload process is not related to it

What went wrong?
In my opinion the ram management regarding the canvas and the image upload process is the problem. as evidence, when losing focus and returning to the browser after a few seconds fixes and re-renders the canvas properly.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 51.0.2704.81  Channel: stable
OS Version: 6.0.1
Flash Version: 

I've captured a video on my android phone, recreating the problem and showing the solution(going to the home screen and returning to the browser):
https://www.youtube.com/watch?v=bEKAmRbb75c
 
Cc: aelias@chromium.org
Status: Available (was: Unconfirmed)
Issue reproducible, tested on Nexus5/6.0.1, Chrome Stable:51.0.2704.81.

Logcat @ http://go/chrome-androidlogs1/6/623038
Components: Blink>Canvas
Status: Untriaged (was: Available)

Comment 3 by junov@chromium.org, Jul 11 2016

Owner: junov@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 by gzk...@gmail.com, Jul 11 2016

After more debugging, I've came to a conclusion that the problem is with Bootstrap's modal.
While scrolling in modal, the "window" scroll event isn't firing, and that in turn causes all the elements out of view to stay unrendered.
You can see in the video that some elements just stay blank.
I've found a workaround, listening to "scroll" event inside the modal and when I detect one, I manually scroll "window" while also changing the size of all the canvas elements to 1px and back to the original size, and that forces a re-render on the page.

Comment 5 by junov@chromium.org, Jul 11 2016

Cc: junov@chromium.org
Components: -Blink>Canvas Blink>Paint>Invalidation
Labels: Needs-Reduction
Owner: ----
Status: Available (was: Assigned)
Trying to repro, I get an error 522 "Connection timed out".  Which looks like it has to do with with the CDN (cloudflare).

Based on comment 4#, look like the issue is more general that just canvas: Flagging as a paint invalidation issue.


Comment 6 by gzk...@gmail.com, Jul 11 2016

You'll not be able to reproduce the problem as I've found a workaround as mentioned in comment #4.
That said, you can take a look at this link:
http://web.archive.org/web/20160704181227/https://nexil.co.il/

Following the steps as the video shows, I was able to reproduce the problem consistently.
I'll be happy to provide more info!
Project Member

Comment 7 by sheriffbot@chromium.org, Jul 12 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by junov@chromium.org, Jul 12 2017

Status: Archived (was: Untriaged)

Sign in to add a comment