Skip to content
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

[Bug report] observer crashes #2286

Open
nikohansen opened this issue May 14, 2024 · 2 comments
Open

[Bug report] observer crashes #2286

nikohansen opened this issue May 14, 2024 · 2 comments

Comments

@nikohansen
Copy link
Contributor

nikohansen commented May 14, 2024

speaking about creating (a large number of) nonexisting files: when calling cocoex.Observer and there exist already 999 output folders with the given result_folder name, the Python kernel crashes . Strangely enough, it happens while the folder name trailing with '-999' does not exist while '-998' does exist (hence 999 folders exist). I still suspect the string memory allocation in C as the offender in that it cannot handle more than three digits?

On macos with the current development branch.

@ttusar
Copy link
Contributor

ttusar commented May 20, 2024

It's a hard-coded constant so that the loop of trying new folder names stops at some point. Should we increase it? To what number?

@nikohansen
Copy link
Contributor Author

Maybe at least to 10,000, and it should give a warning when the number module 1000 is zero?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants