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

Stack overflow with Raster("")? #898

Open
asinghvi17 opened this issue Feb 17, 2025 · 2 comments
Open

Stack overflow with Raster("")? #898

asinghvi17 opened this issue Feb 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@asinghvi17
Copy link
Collaborator

julia> Raster("")
ERROR: StackOverflowError:

Not sure if it's my particular system or if other people can replicate, but this looks strange indeed. Maybe we should detect empty strings?

@asinghvi17 asinghvi17 added the bug Something isn't working label Feb 17, 2025
@felixcremer
Copy link
Contributor

felixcremer commented Feb 17, 2025

I can reproduce and I chased it down to basically isdirpath("") giving true and then this goes into an infinite loop of calling _sourcetrait("")

@asinghvi17
Copy link
Collaborator Author

We could have an isempty check at the start of the function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants