Page freezes when entering due date in saved filter #1982
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1982
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version information:
Frontend Version: 0.19.1
API Version: 0.19.2
Browser and OS Version: Mozilla Firefox v104.0.2 (64-bit), Windows 10 Pro
(both frontend and API running in Docker on Synology DiskStation on local network)
Steps to reproduce:
Namespaces & Lists
>New Saved Filter
Due/Start/End Date
, clickSelect A Date Range
From
or 'To` textboxes....
Expected behavior:
Create a new saved filter which uses Due Dates as criteria while using the Firefox browser.
Actual behavior:
After attempting to enter any information into the From or To textboxes, the page completely stops responding. No errors appear either in the Docker logs (checked both API and frontend containers) or the browser dev tools console. Tried these same steps in Google Chrome and did not encounter any problems.
Checklist:
I was not able to reproduce this on try. What value did you try to enter in the
From
/To
inputs?Hmm, I reproduced it on try prior to my original post. Also tried again just now and was able to do so again. I am able to produce this behavior either by clicking on the textbox and pressing any key (I tried several different numbers and letters) or by clicking the calendar button and selecting a date range (the behavior happens when I click away from the calendar to confirm my choice).
To clarify what I mean by "freezing" is that I can no longer interact with the page and get the "This page is slowing down Firefox" message at the top of the window.
Looks like this only happens with the "Reminders" input option, not with any of the others.
I've pushed a potential fix in
ede5cdd8cf
- please check with the next unstable build on try if that fixed your issue.Sorry for the delay... I've tried again on try today, and I'm still seeing the issue on all of the date fields: Due Date, Start Date, End Date, and Reminder.
I just tried this but wasn't able to reproduce this on try with latest Firefox on MacOS.
In that case, it's entirely possible that it's something on my end, though I have no idea what it could be. If anything comes to mind, I'll pass it along.
Maybe it's related to a browser plugin.
Can you try https://try.vikunja.io/ it in an incognito tab?
No luck, still the same in incognito. Before testing, I went into Firefox settings and made sure that all extensions had "allow in private browser" disabled.
For what it's worth, this issue has become a bit of a moot point for me personally since I've started using Vivaldi recently, and this behavior only happens in Firefox. That said, I'm still happy to assist in tracking down the cause if you still want to pursue it.
Maybe it's Firefox / Windows only issue. Will try if I can trigger it with Browserstack
Looks like I can reproduce it. Firefox 104 on NixOS.
Steps:
now
into the "From" field in the little popup that opensI could reproduce it as well now. i might have an idea how to fix it. Will investigate.
I've recorded a performance profile for when it happens: https://share.firefox.dev/3Cg4iLO
From the traceroute it looks like this is related to
vue-i18n
.From further debugging this: Seems like the watcher for
from
andto
are triggered in a loop. My theory is this:emitChanged
is called from the watchermodelValue
changesmodelValue
thefrom
andto
watcher get called againIt's interesting to note this only happens when either
from
orto
contain a Date object. I assume somewhere along the linenew Date
gets called with the value offrom
andto
which creates a newDate
object, different from the last one - thus calling the watchers again.Will investigate some more.
I think I found the problem.
Consider this:
What value is now saved in
rawStringDate
?The same string as before?
haha you bet - IT'S A JS DATE OBJECT
will push a fix...
seems like that was not it.
Patch from my last approach:
Fix is up:
6d587fad6e
Please check with the next unstable build if really fixed.
This is still a problem for me on 0.20.5. I basically can't use the date filters at all.
@dead10ck Can you open a new issue with clear steps to reproduce?
@konrad you wrote a good reproduction here. It seems like exactly the same issue.
I'm not able to reproduce it with that. Please open a new issue with more details about your environment, version, etc. This one is already closed.