Infeasible
Status Update
Comments
ar...@google.com <ar...@google.com> #2
The problem is very serious.
Currently html5 clearRect isn't working within any android 4 devices.
Please, solve this problem as soon as possible.
Currently html5 clearRect isn't working within any android 4 devices.
Please, solve this problem as soon as possible.
wo...@gmail.com <wo...@gmail.com> #3
we have the same problem
We are waiting for a patch since November because none of the workaround we have tried is stable.
We hope that the patch will come before the launching of our app and if not...well, sadly, we will launch the app on iOS and windows only
We are waiting for a patch since November because none of the workaround we have tried is stable.
We hope that the patch will come before the launching of our app and if not...well, sadly, we will launch the app on iOS and windows only
ar...@google.com <ar...@google.com> #4
[Comment deleted]
ar...@google.com <ar...@google.com> #5
Still appears to be an issue as I'm getting quirky results when trying clearRect in a loop. #3 solution is good but too heavy to work in a loop.
ha...@gmail.com <ha...@gmail.com> #6
What about using requestAnimationFrame for loop rather than using a timer loop ?
ar...@gmail.com <ar...@gmail.com> #7
Hey, this is a serious issue that is affecting our production components, could someone please look into this???
kv...@gmail.com <kv...@gmail.com> #8
is there any solvtion for that issue ?
ha...@gmail.com <ha...@gmail.com> #9
Something like that works for me:
function bug_workaround() {
$(canvas).hide();
setTimeout(function() {
$(canvas).show();
}, 1);
}
I call this function after clear.
function bug_workaround() {
$(canvas).hide();
setTimeout(function() {
$(canvas).show();
}, 1);
}
I call this function after clear.
[Deleted User] <[Deleted User]> #10
Opacity trick is better because will not initiate page reflow and hide /
show will.
show will.
ar...@google.com <ar...@google.com> #11
which trick would that be? modify the opacity?
ch...@beyls.net <ch...@beyls.net> #12
Yes,
function bug_workaround() {
canvas.style.opacity = 0.99;
setTimeout(function() {
canvas.style.opacity = 1;
}, 1);
}
function bug_workaround() {
canvas.style.opacity = 0.99;
setTimeout(function() {
canvas.style.opacity = 1;
}, 1);
}
ch...@beyls.net <ch...@beyls.net> #13
[Comment deleted]
[Deleted User] <[Deleted User]> #14
Hi,
I'm having the same problem but the workaround doesn't seem to help. Was wondering if this issue is somehow fixed by now?
Thank You.
I'm having the same problem but the workaround doesn't seem to help. Was wondering if this issue is somehow fixed by now?
Thank You.
ch...@beyls.net <ch...@beyls.net> #15
This opacity hack works for me. I've had this issue on 4.1.1 and 4.1.2, both Galaxy S3 and the S3 mini.
Calling this function between clearing the canvas and the next draw call seems to have fixed the problem.
function bug_workaround() {
canvas.style.opacity = 0.99;
setTimeout(function() {
canvas.style.opacity = 1;
}, 1);
}
Thanks, dennis.ra!
Calling this function between clearing the canvas and the next draw call seems to have fixed the problem.
function bug_workaround() {
canvas.style.opacity = 0.99;
setTimeout(function() {
canvas.style.opacity = 1;
}, 1);
}
Thanks, dennis.ra!
ar...@google.com <ar...@google.com> #16
The opacity trick doesn't seem to work for me (Android 4.3).
Hide & show causes a lot of nasty flicker.
This solution works form me:
https://medium.com/@dhashvir/android-4-1-x-stock-browser-canvas-solution-ffcb939af758
But only the second one:
canvas.clearRect(0, 0, w, h);
canvas.style.display = 'none';// Detach from DOM
canvas.offsetHeight; // Force the detach
canvas.style.display = 'inherit'; // Reattach to DOM
Performance hit seems to be minimal for my app (game with multiple canvas one over another).
Hide & show causes a lot of nasty flicker.
This solution works form me:
But only the second one:
canvas.clearRect(0, 0, w, h);
canvas.style.display = 'none';// Detach from DOM
canvas.offsetHeight; // Force the detach
canvas.style.display = 'inherit'; // Reattach to DOM
Performance hit seems to be minimal for my app (game with multiple canvas one over another).
ar...@google.com <ar...@google.com> #17
seems android 4.1/4.2/4.3 both have this problem?
ch...@beyls.net <ch...@beyls.net> #18
I created a minimal sample project as reproduction usecase: https://github.com/cbeyls/CoordinatorLayoutStateRestoration
I also provided the fix as pull request and a workaround class for developers, I don't think I can do more than that.
I also provided the fix as pull request and a workaround class for developers, I don't think I can do more than that.
ch...@google.com <ch...@google.com> #19
Note that we're dropping support for <v14 in 26.0.0 so unlikely to release a fix.
Thanks for the investigation though Christophe
Thanks for the investigation though Christophe
ch...@beyls.net <ch...@beyls.net> #20
I was hoping for a final 25.x bugfix release for older devices before their support is dropped. CoordinatorLayout never worked properly on API <13 devices since it was introduced in 2015.
ar...@google.com <ar...@google.com> #21
We no longer target support library for devices less than API 14. Since this bug is only reproducible for those devices, there is nothing we can do about it.
If you can create a minimal project that reproduces it on devices with API 14 and above, we can reopen the bug and fix it.
If you can create a minimal project that reproduces it on devices with API 14 and above, we can reopen the bug and fix it.
Description
The referenced issue is closed because the bug was fixed in an older release. However the bug reappears in the support library 25.x again and there are a lot of comments that are asking for opening the ticket.
But apparently no maintainer is reading closed tickets so I'm opening this to pull the attention there.