-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[GTK3/GTKMM3] libcairo-2.dll call to DWrite.dll causing Segmentation fault #15316
Comments
The best way is probably to rebuild cairo with And after that file a bug here: https://gitlab.freedesktop.org/cairo/cairo/-/issues |
@giuspen Thanks for reporting this issue. I have built the program in mingw64. Is it possible to reproduce the segfault stage without a printer? I am interested to debug the program but I do not have any printer. |
@giuspen also another suggestion: MinGW inkscape package makes heavy use of CAIRO for printing. You might want to d/l the binary, draw and print something, to initially sort if its is code, environment or library specific. Also the source code is a textbook example of Windows printing using CAIRO. might be worth a look. |
@Biswa96 yes just File--Print and then when you get the dialog select "Microsoft Print to PDF" |
Thanks @lazka I have a better stack trace now, I will raise an issue where you indicated
|
Issue created against cairo: https://gitlab.freedesktop.org/cairo/cairo/-/issues/632 |
Description / Steps to reproduce the issue
I have a crash when printing ( giuspen/cherrytree#2066 ) which as the backtrace below shows is pointing the finger to libcairo-2.dll calling DWrite.dll:
I suspect this was introduced when re-enabling DWite in 853c407#diff-ec73b1797eaafa14b354022f28487d6a4d8f5e84ca776012c1c7fcdf6088b392
I tried to rebuild the package with the patch reverted ( following https://www.msys2.org/wiki/Creating-Packages/ ) but after installing, my app fails to link, I guess I have to rebuild all the libraries that depend on it. I wonder if there is an easy way or I have to rebuild all libraries manually.
Unfortunately for me gtk3-demo doesn't crash.
In case you would be happy to reproduce the crash via my app see https://github.com/giuspen/cherrytree#building-cherrytree-on-windows
Expected behavior
No crash
Actual behavior
warning: Invalid parameter passed to C runtime function.
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ffae80b5714 in ?? () from C:\Windows\SYSTEM32\DWrite.dll
(gdb) bt
#0 0x00007ffae80b5714 in ?? () from C:\Windows\SYSTEM32\DWrite.dll
#1 0x00007ffab8371f4c in ?? () from C:\msys64\mingw64\bin\libcairo-2.dll
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: