-
Notifications
You must be signed in to change notification settings - Fork 559
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
Open handles/threads in 12.0 #6096
Comments
Is your issue that your process doesn't terminate? If so, can you explain about your use case in more details? File descriptor 0, 1, and 2 will be open for any process on a POSIX compliant operating system. |
Yes, process doesn't terminate. The problem is that unit testing is impossible in such case. |
It sounds like you are not using React Native but you might find https://www.mongodb.com/docs/realm/sdk/react-native/test-and-debug/testing/ useful. If you are using Jest as test harness, we have seen similar issues in the past. |
We call close method, it works fine in Realm 11, but how close can help if it's enought to just do an import of Realm package w/o any initialization of database so JS file will never end. We use Node.js SDK |
Any class expression causes a problem with debbuger |
We should use some context of what you are trying to do. Can you provide instructions on how to reproduce it? |
Since Realm 12 we need to call |
Previously,
|
We are also having similar issues in jest when upgrading realm to v12. We get the following output for any test that involves realm:
And when we run jest with We have followed the steps from the documentation linked above, and also attempted to use the undocumented
I also tried the steps outlined by @sergeysedoy97 and see the same result. I would love to upgrade to v12, but this is currently a hard block on doing so. |
Got same issue and it's reproducible with even the suggested test example by the official docs. |
This is still an open issue and the only way to get tests to finish is by adding |
Is there any update on this being investigated or plans for a fix? We're keen on upgrading to the latest realm but this issue is a significant blocker. Requiring the |
With v12.7.0 we have introduced the method |
How frequently does the bug occur?
Always
Description
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
node node_modules/realm/dist/bundle.node.js
is always waiting for inputVersion
12
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Any
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: