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

Error occurred while generating preview #399

Closed
DavidCdeB opened this issue Sep 3, 2023 · 19 comments
Closed

Error occurred while generating preview #399

DavidCdeB opened this issue Sep 3, 2023 · 19 comments
Labels
Additional info required Needs more information to be classified or worked on

Comments

@DavidCdeB
Copy link

DavidCdeB commented Sep 3, 2023

Thanks for this great program; unfortunately, since last update, I can see the error message below.

Minimal Working Example:

  • $ inkscape
  • Extensions > Text > TexText
  • type ab
  • press button Preview
  • I'm using the default preamble default_packages.tex

textext

Full error message here:

Return Code: -11: b'\nEmergency save activated!\nEmergency save completed. Inkscape will close now.\nIf you can reproduce this crash, please file a bug at https://inkscape.org/report\nwith a detailed description of the steps leading to the crash, so we can fix it.\n** Message: 18:12:30.665: Error: \n 0# Inkscape::Application::crash_handler(int) in /usr/bin/../lib/inkscape/libinkscape_base.so.1.3.0.0\n 1# 0x00007F1AFCC2A710 in /usr/lib/libc.so.6\n 2# 0x00007F1AFB128A7B in /usr/bin/../lib/inkscape/../libgtk-3.so.0\n 3# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 4# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 5# 0x00007F1AFC3B828E in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 6# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 7# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 8# 0x00007F1AFC3A5493 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 9# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n10# 0x00007F1AFC34A67D in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n11# g_main_context_dispatch in /usr/lib/libglib-2.0.so.0\n12# 0x00007F1AFD3F1CC9 in /usr/lib/libglib-2.0.so.0\n13# g_main_context_iteration in /usr/lib/libglib-2.0.so.0\n14# g_application_run in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n15# main in /usr/bin/inkscape\n16# 0x00007F1AFCC13CD0 in /usr/lib/libc.so.6\n17# __libc_start_main in /usr/lib/libc.so.6\n18# _start in /usr/bin/inkscape\n'
b''
args: ("Return Code: -11: b'\nEmergency save activated!\nEmergency save completed. Inkscape will close now.\nIf you can reproduce this crash, please file a bug at https://inkscape.org/report\\nwith a detailed description of the steps leading to the crash, so we can fix it.\n** Message: 18:12:30.665: Error: \n 0# Inkscape::Application::crash_handler(int) in /usr/bin/../lib/inkscape/libinkscape_base.so.1.3.0.0\n 1# 0x00007F1AFCC2A710 in /usr/lib/libc.so.6\n 2# 0x00007F1AFB128A7B in /usr/bin/../lib/inkscape/../libgtk-3.so.0\n 3# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 4# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 5# 0x00007F1AFC3B828E in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 6# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 7# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 8# 0x00007F1AFC3A5493 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 9# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n10# 0x00007F1AFC34A67D in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n11# g_main_context_dispatch in /usr/lib/libglib-2.0.so.0\n12# 0x00007F1AFD3F1CC9 in /usr/lib/libglib-2.0.so.0\n13# g_main_context_iteration in /usr/lib/libglib-2.0.so.0\n14# g_application_run in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n15# main in /usr/bin/inkscape\n16# 0x00007F1AFCC13CD0 in /usr/lib/libc.so.6\n17# __libc_start_main in /usr/lib/libc.so.6\n18# _start in /usr/bin/inkscape\n'\nb''\nargs: ('inkscape', -11, b'\nEmergency save activated!\nEmergency save completed. Inkscape will close now.\nIf you can reproduce this crash, please file a bug at https://inkscape.org/report\\nwith a detailed description of the steps leading to the crash, so we can fix it.\n** Message: 18:12:30.665: Error: \n 0# Inkscape::Application::crash_handler(int) in /usr/bin/../lib/inkscape/libinkscape_base.so.1.3.0.0\n 1# 0x00007F1AFCC2A710 in /usr/lib/libc.so.6\n 2# 0x00007F1AFB128A7B in /usr/bin/../lib/inkscape/../libgtk-3.so.0\n 3# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 4# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 5# 0x00007F1AFC3B828E in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 6# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 7# 0x00007F1AFC34E6AD in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 8# 0x00007F1AFC3A5493 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n 9# 0x00007F1AFC34A644 in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n10# 0x00007F1AFC34A67D in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n11# g_main_context_dispatch in /usr/lib/libglib-2.0.so.0\n12# 0x00007F1AFD3F1CC9 in /usr/lib/libglib-2.0.so.0\n13# g_main_context_iteration in /usr/lib/libglib-2.0.so.0\n14# g_application_run in /usr/bin/../lib/inkscape/../libgio-2.0.so.0\n15# main in /usr/bin/inkscape\n16# 0x00007F1AFCC13CD0 in /usr/lib/libc.so.6\n17# __libc_start_main in /usr/lib/libc.so.6\n18# _start in /usr/bin/inkscape\n', b'', ['/usr/bin/inkscape', '--export-filename=tmp.png', '--pdf-poppler', '--pages=1', '--export-type=png', '--export-dpi=300', '--export-area-drawing', 'tmp.pdf'])",)

Logfile
Here the TexText log file:

textext.log

System information

  • TexText version: TexText 1.9.0
  • Inkscape version: 1.3 (0e150ed6c4, 2023-07-21)
  • Operating system: ArchLinux
@jcwinkler
Copy link
Member

Thanks for the report. What I do conclude from the log is that the gobject introspection system throws the error. The system provides the Python bindings for the gtk interface of TexText (and other extensions like the extension manager). So I assume a packaging problem here. What does happen of you open the extension manager and work a little bit with it?

@jcwinkler jcwinkler added the Additional info required Needs more information to be classified or worked on label Sep 4, 2023
@DavidCdeB
Copy link
Author

@jcwinkler Thanks for the reply.

What does happen of you open the extension manager and work a little bit with it?

I'm sorry, but I'm unsure if the "extension manager" means the window that pops up when clicking on Extensions > Manage Extensions. If that's the case then I can confirm I can open such a window but there's not so much useful information there.

@oooohmygod
Copy link

oooohmygod commented Sep 9, 2023

@jcwinkler I encountered the same problem. When I open the extension manager or Textext (or other extensions require textext, e.g. inkscapeMadeEasy) for a few seconds, it pops out "inkscape" is not responding warning message. This doesn't happen when I use other extensions.
When Preview or Save button is clicked it will show the error message.

System information

  • TexText version: TexText 1.9.0
  • Inkscape version: 1.3 (0e150ed6c4, 2023-07-21)
  • Operating system: ArchLinux

@guilhermegog
Copy link

@jcwinkler Ran into the same problem just now. When I opened the extension manager, I could not find TexText in it, and the error messages persisted.

System info:

  • TexText version: 1.9.0
  • Inkscape version 1.3
  • OS: Fedora 38

@andreyzhitnikov
Copy link

andreyzhitnikov commented Nov 8, 2023

Hi guys (@jcwinkler ), same issue for me.
System info:

TexText version: 1.9.0
Inkscape version 1.3
OS: Fedora 39

I tried Xorg and Wayland. Same problem.

@andreyzhitnikov
Copy link

Which info needed @jcwinkler ???

@jcwinkler
Copy link
Member

Please could you perform the following test: generate a small pdf snippet using latex, e.g with the content $x=y$. Then open Inkscape and try to import this snippet. Does it work?

@andreyzhitnikov
Copy link

Yes, importing pdf works well. If I'm trying to generate from textex however I got this
Screenshot from 2023-11-10 04-27-24

@andreyzhitnikov
Copy link

@jcwinkler I have TeX Live 2023

@jcwinkler
Copy link
Member

Ok, thanks @andreyzhitnikov . Now a final test. Take your pdf snippet (I assume it is called test.pdf) and run the following command:

inkscape --pdf-poppler --pages=1 --export-type=svg --export-text-to-path --export-area-drawing --export-filename test.svg test.pdf

Does it produce a valid test.svg or does it result in a crash?

@andreyzhitnikov
Copy link

Screenshot from 2023-11-10 10-41-25

@andreyzhitnikov
Copy link

@jcwinkler crashed

@jcwinkler
Copy link
Member

OK, thanks. So this is really an inkscape issue, not an issue of TexText.

Background: Inkscape is used by TexText to convert the generated pdf snippet into svg. And this converion crashes Inkscape. Most likely, it is a problem of packaging on your Fedora distro.

The Inkscape developers told me that this issue should be fixed in Inkscape 1.3.1. So you can try the following:

  1. Download the Inkscape 1.3.1 AppImage from their Website
  2. Try to run the AppImgage. It shoud run out of the box. If not we are lost here.
  3. Run and test TexText.

Please also post the exact version of the AppImage-Inkscape.

@andreyzhitnikov
Copy link

@jcwinkler I run Appimage. Textex does not start

@oooohmygod
Copy link

It can run on the latest Appimage. Although it's still showing "inkscape" is not responding warning message.

@jcwinkler
Copy link
Member

It can run on the latest Appimage. Although it's still showing "inkscape" is not responding warning message.

This means what? Does it compile sth? Or does it hang?

@oooohmygod
Copy link

It can run on the latest Appimage. Although it's still showing "inkscape" is not responding warning message.

This means what? Does it compile sth? Or does it hang?

It compiles the formula as expected.

@jcwinkler
Copy link
Member

Ok. The "Inkscape is not responding" message is fine and intended since TexText opens a modal dialog, hence blocking the calling program.

@ajacquey
Copy link

I encountered the same issue than described here on Fedora 39.

I downloaded the Appimage from the website but Textext does not start (no window opens).

@jcwinkler I run Appimage. Textex does not start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Additional info required Needs more information to be classified or worked on
Projects
None yet
Development

No branches or pull requests

6 participants