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: SVG randomly stops working in Linux #52

Open
marc2332 opened this issue Apr 21, 2024 · 13 comments
Open

bug: SVG randomly stops working in Linux #52

marc2332 opened this issue Apr 21, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@marc2332
Copy link
Owner

For whatever reason when I open a folder in freya-editor, all SVGs stop working

@marc2332 marc2332 added the bug Something isn't working label Apr 21, 2024
@marc2332
Copy link
Owner Author

marc2332 commented Jun 2, 2024

image

@marc2332
Copy link
Owner Author

marc2332 commented Jun 2, 2024

@marc2332
Copy link
Owner Author

marc2332 commented Jun 2, 2024

Hey @pragmatrix, sorry for pinging you here, do you have any idea what could be causin this? It doesn't happen on Windows.

Maybe #52 (comment) ? I haven't tried disabling it yet, will do soon, but I doubt that's the issue..

@marc2332
Copy link
Owner Author

marc2332 commented Jun 2, 2024

For reference, this is how it should look:
image

@pragmatrix
Copy link

I've no idea. Initially I though it may be that opening a folder may change the current directory on Linux, but as I've seen in the source, the svgs are loaded at compile time.

@marc2332
Copy link
Owner Author

marc2332 commented Jun 3, 2024

Yeah, they are statically linked, I wonder if it has anything to do with loading emojis (I am using those for the folder and file icons), will make some experiments soon

@marc2332
Copy link
Owner Author

marc2332 commented Jun 3, 2024

after some testing

mmm

@marc2332
Copy link
Owner Author

marc2332 commented Jun 3, 2024

For whatever reason when I open a folder in freya-editor, all SVGs stop working

Actually, it also happens in other situations, I don't see any pattern

@pragmatrix
Copy link

If you are confident that the problem is in the Skia part, I suggest to compile the project with SKIA_DEBUG=1. May be some assertions will show up in the terminal output when the SVGs fail to render.

@marc2332
Copy link
Owner Author

marc2332 commented Jun 3, 2024

If you are confident that the problem is in the Skia part, I suggest to compile the project with SKIA_DEBUG=1. May be some assertions will show up in the terminal output when the SVGs fail to render.

I tried to compile it on the CI but I couldn't get it to work

And now I tried to compile it on my linux but got SIGSEGV: child process 'cargo' core dumped when finally running the binary, any other way I could do it?

@marc2332
Copy link
Owner Author

marc2332 commented Jun 3, 2024

Looks like it doesn't crash with SKIA_DEBUG = 0 😭

@marc2332
Copy link
Owner Author

Any idea why is it crashing with SKIA_DEBUG = 1? @pragmatrix

@pragmatrix
Copy link

No, but the next step would be to take a closer look with a debugger or analyze the crash dump.

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