-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Executing a cancelled action #5671
Comments
Ping |
Without a minimal reproduction, there's not a great deal that can be done here. AFAICT, the unsubscription mechanism with
and here:
If the calls are not being made as expected - there should be one |
I'm facing the same issue randomly when running karma unit tests and angular. Some runs are fine, some are failing. In my case the issue originates from the usage of the throttleTime(), which uses asyncSubscriber under the hood. Also, zone.js is used, which patches the setInterval, which may somehow conflict with rxjs in this instance. @cartant Any advice on how I can investigate this further? Here are the stacktraces: |
@pshurygin Instead of commenting on a closed issue, it's always preferable to open a new issue, fill out the template and refer the related issue. IDK what version you are using, etc. Regarding what you can do next:
Fundamentally, the aim is to reduce the scenario that effects the problem to be as simple as possible. Hopefully, simple enough to share so that someone else can reproduce it. @kwonoj I thought we had a bot that locked inactive, closed issues. Is that no longer a thing? |
I think it's still thing? Haven't checked it recently though. |
This issue came up at Google, I'm reopening it, although no one has been able to come up with a simple reproduction. :\ |
Actually... this isn't quite the same thing as what I was talking about... :\ Closing again. We'll need to file another issue. |
(I know it's closed. And there is no open issue for this problem currently.) I see this in our logs occasionally, in our Angular app. If I ever get more details, I'll file a new issue. But most probably I'm just gonna ignore it. |
@benlesh Was another issue filed? This issue seems to be occurring in rxjs v7. (Can't reproduce just yet. Will update if I can) |
We are also facing the same issue and we have seen that it happens immediately after an "npm i" and then running our unit tests. Then after 1-2 times of executing our unit tests its stops comming |
I was encountering this while running marble tests in an angular project with the following dependencies:- I resolved it by doing the following
|
@nanditsaini @pshurygin @rahcusa what did you guys do for the flaky nature of the unit test. I am facing the same issue "Executing a cancelled action" in my jasmine tests for angular 16 application. Sometimes they fail and sometimes they pass. |
Bug Report
Current Behavior
This code is throwing "Executing a cancelled action " after a while:
At this callsite:
which is in turn called from:
Stacktrace; and "Angular" is nowhere near my code, I assure you.
Reproduction:
This repeats when I switch tabs, after a while. I'm not sure why: the calling code looks like this:
According to the code, in
visibilityState
; the crash comes immediately, so perhaps the observable is created and immediately cancelled, causing this issue.Expected behavior
A clear and concise description of what you expected to happen (or code).
Environment
Possible Solution
Don't crash the "constructor"; it doesn't matter as a user what scheduler you're using, if the constructor (aka. callback that instantiates the observable) can't run to completion.
Noteworthy:
I also have this package installed and initialised in the browser, which might affect your usage of Zone.js (if you're using it):
The text was updated successfully, but these errors were encountered: