×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

*SOLVED* PHD2 crashes on Help -> About...

  • Posts: 130
  • Thank you received: 11
Whenever I start phd2 (2.6.6.rev20190325-0ppa1~ubuntu18.04) on my Laptop and press Help, About... it immediately crashes.
klaus@sirius:~$ phd2
(phd2.bin:3455): Gtk-WARNING **: 19:24:07.966: Unable to locate theme engine in module_path: "adwaita",
(phd2.bin:3455): Gtk-WARNING **: 19:24:07.973: Unable to locate theme engine in module_path: "adwaita",
(phd2.bin:3455): Gdk-CRITICAL **: 19:24:08.454: _gdk_pixmap_new: assertion '(width != 0) && (height != 0)' failed
(phd2.bin:3455): Gdk-CRITICAL **: 19:24:08.454: IA__gdk_gc_new: assertion 'drawable != NULL' failed
(phd2.bin:3455): Gdk-CRITICAL **: 19:24:08.454: IA__gdk_draw_drawable: assertion 'GDK_IS_DRAWABLE (drawable)' failed
(phd2.bin:3455): GLib-GObject-CRITICAL **: 19:24:08.454: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault (core dumped)
klaus@sirius:~$
4 years 11 months ago #37240

Please Log in or Create an account to join the conversation.

  • Posts: 298
  • Thank you received: 46
Hi,

Looks like there is something missing, maybe you can compare what I have installed, take a look at the picture.

Br
/Markku
4 years 11 months ago #37243
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 1009
  • Thank you received: 133
The warnings, though marked CRITICAL, are unrelated. I also get them (also from other GTK applications), but for me it works without trouble. I'm running a self-compiled version on a different distribution, though.
Can you try to run strace (or a debugger) to see where exactly it's failing?
4 years 11 months ago #37309

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 11
Thanks guys for the suggestions. I added libs and played around with system settings, changing themes and settings which could make a difference. No success. On a second machine phd2 runs fine, but I couln't find what the difference is. Now I fetched the source code and compiled it. Again, no success. Finally, I was able to pin down the problem to some unicode characters in the html code of the About dialog. When I comment out the lines "<td>G\u00FCnter Scholz</td>" and "<td>Iv\u00E1n Zabala</td>", phd2 runs fine. Any ideas?

CS
Klaus
4 years 11 months ago #37322

Please Log in or Create an account to join the conversation.

  • Posts: 298
  • Thank you received: 46
That was interesting, that would give the name "Günter Scholz" but I don't have that name in the list..
What do you get if you give the command echo -e \\u00FC and echo -e \\u00E1 in the terminal ?

Edit..
Sorry about that, I was a bit too fast and found his name :)
Last edit: 4 years 11 months ago by Markku. Reason: Missed a name..
4 years 11 months ago #37328

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 11
I get

klaus@sirius:~$ echo -e \\u00FC && echo -e \\u00E1
ü
á

Looks good.
4 years 11 months ago #37330

Please Log in or Create an account to join the conversation.

  • Posts: 298
  • Thank you received: 46
Yes, that look good.
Did some more debugging, I'm not sure this is leading anywhere but I can reproduce the crash by setting a locale.
If I do cat /usr/share/applications/phd2.desktop I can see that Encoding is set to UTF-8, by starting up phd2 like
LANG=en_US phd2 then all menus work exept the "About" that makes a "Segmentation fault (core dumped)".. so I'm not getting any wiser by that..??
4 years 11 months ago #37332

Please Log in or Create an account to join the conversation.

  • Posts: 130
  • Thank you received: 11
Yeah, good guess. I don't know why but my locale was set to en_DE. Set it to de_DE and restart and phd2 runs fine. Thanks for your help.

CS
Klaus
4 years 11 months ago #37349

Please Log in or Create an account to join the conversation.

  • Posts: 298
  • Thank you received: 46
That's great :) and happy to help you!

CS
/Markku
4 years 11 months ago #37354

Please Log in or Create an account to join the conversation.

Time to create page: 1.092 seconds