Linux Hard Crash

Just signed up for the trial version, I am using gentoo. I grabbed the manual tarball. Started up fine the first time, then I imported an odt file of a story I have been writing in libreoffice. Granthika crashes with the following Java Runtime Error.

INFO: [file:///home/kamii/.Granthika/exploaded/webapp/bundle.js:12472] License and Subscription OK!
Feb 10, 2020 3:45:28 AM co.granthika.desktop.EditorWebview lambda$setupBrowserPrivate$0
INFO: [file:///home/kamii/.Granthika/exploaded/webapp/bundle.js:12472] TAD PM Converted buffer size 50000

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f942df4ff66, pid=28304, tid=0x00007f941e03f700

JRE version: Java™ SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)

Java VM: Java HotSpot™ 64-Bit Server VM (25.191-b12 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [libpango-1.0.so.0+0x17f66]

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

An error report file with more information is saved as:

/home/kamii/Downloads/Granthika/app/hs_err_pid28304.log

Compiled method (nm) 38921 6146 n 0 com.sun.javafx.font.freetype.OSPango::pango_itemize (native)
total in heap [0x00007f94399d6910,0x00007f94399d6c88] = 888
relocation [0x00007f94399d6a38,0x00007f94399d6a80] = 72
main code [0x00007f94399d6a80,0x00007f94399d6c80] = 512
oops [0x00007f94399d6c80,0x00007f94399d6c88] = 8

If you would like to submit a bug report, please visit:

http://bugreport.java.com/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

Aborted

Now, Every time I try to start Granthika it tries to finish the import conversion and crashes hard making it impossible to use the program.

Hi KaMii,

Ouch :frowning:

Many thanks for reporting this! Any chance you could attach that log file /home/kamii/Downloads/Granthika/app/hs_err_pid28304.log

so we might see the full call stack of the crash site?

Best,
Boris

Couldn’t figure out how to upload a file and the log is larger than the forum likes so here is a dpaste link that will expire one month from today:

http://dpaste.com/1QS31SJ

Hi KaMii,

Thanks so much for posting the log. Sadly, I don’t have a solution. The library that’s crashing is Pango (which handles text and fonts in GTK): https://packages.debian.org/sid/libpango-1.0-0.

Researching, I’ve found a few different situation where this could occur, but couldn’t find a hint on how to avoid it in our case. I’m pretty confident it’s not due to the import, the import is probably finished, but the rendering is crashing. Is it possible that you have some special characters that perhaps the default font we have doesn’t handle well? In one root cause for such Pango crashes, apparently the font of some character was size 0.

FYI, Granthika uses WebKit as an embedded browser and from the call stack I can see that the crash occurs while WebKit is rendering HTML.

Another, albeit old, root cause of this crash is described here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=224088 where the user explains the CPU overheating was the problem. Sounds strange and hard to believe, but I dunno.

Really sorry I cannot say more at the moment. If you can tell me exact version of Linux you are on, I could setup a VM and try to reproduce. With a bit of luck changing the default font might solve it.

Thanks much for your feedback!

Boris

I just wandered in taking a look to see if I could determine what form Linux support takes for Granthika (some apps only support certain packaging systems) when i saw this.

Depending on when you last updated Pango on your system, you may want to take a look at: https://github.com/gentoo/gentoo/pull/10417

@ptelder Thanks much for chiming in!

As far as support for Linux, given the many systems out there it’s hard to cover them. We provide Debian and Redhat packages, and a tarball build. Given enough demand, we will probably include and Arch Linux build (one user actually took it upon themselves and contributed a script for that).

Cheers,
Boris

As I stated in the original post, I am on Gentoo. It is up-to-date. I do have “special” characters. I am Swedish, so I have three extra vowels. If it is a rendering issue for languages that use umlauts, then, how do we get around this issue? The CPU overheating report does not seem valid to me. And my CPU is nowhere near to overheating when using Granthika or even compiling things in Gentoo (like QT5, which takes a fortnight banging away on all 8 cores). I grabbed your precompiled binary for the generic linux. Can you test rendering using umlaut characters and see if that causes a crash? If so, is there a way to get around this?