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

improve: git grep gets SDL Error (#<SDL-SURFACE {#X00000000}>): Text has zero width or crash the lem. #1698

Open
sakurawald opened this issue Dec 10, 2024 · 3 comments

Comments

@sakurawald
Copy link
Contributor

To reproduce:

  1. Run git clone [email protected]:lem-project/lem-project.github.io.git
  2. Reset the HEAD to d5e3548aef9eadf2ed36fb274c4105a9344b39e6.
  3. Open the project using lem.
  4. Run lem/grep::project-grep with arg git grep -niHi 'grep'.
  5. Get the error.
@sakurawald
Copy link
Contributor Author

It seems like the big js file causing the error, or some problems about the string escape.

image

@sakurawald
Copy link
Contributor Author

Another interesting command: Run lem/grep::project-gre with git grep -nHI 'webpack'.
And the lem will crash directly without any error message.

@sakurawald sakurawald changed the title improve: git grep gets SDL Error (#<SDL-SURFACE {#X00000000}>): Text has zero width improve: git grep gets SDL Error (#<SDL-SURFACE {#X00000000}>): Text has zero width or crash the lem. Dec 10, 2024
@funk443
Copy link
Contributor

funk443 commented Jan 9, 2025

To reproduce:

1. Run `git clone [email protected]:lem-project/lem-project.github.io.git`

2. Reset the `HEAD` to `d5e3548aef9eadf2ed36fb274c4105a9344b39e6`.

3. Open the project using `lem`.

4. Run `lem/grep::project-grep` with arg `git grep -niHi 'grep'`.

5. Get the error.

This should be fix by #1741.

Another interesting command: Run lem/grep::project-gre with git grep -nHI 'webpack'. And the lem will crash directly without any error message.

I believe this is because Lem cannot handle so many super long lines.

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

No branches or pull requests

2 participants