×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

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

1 year 6 months ago
klaus
Expert Boarder
Expert Boarder
Posts: 126
Karma: 1
More
Topic Author
*SOLVED* PHD2 crashes on Help -> About... #37240
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:~$

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

1 year 6 months ago
maxer
Gold Boarder
Gold Boarder
Posts: 261
Karma: 1
More
*SOLVED* PHD2 crashes on Help -> About... #37243
Hi,

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

Br
/Markku

EQ8, Small scope SW200, Big scope SW300, Xagyl FW, Guidescope Celestron 80mm, SX LodestarX2, SXVR-H9.
RPi3, Ubuntu Mate, and many Arduinos..
Attachments:

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

1 year 6 months ago
DerPit
Platinum Boarder
Platinum Boarder
Posts: 545
Karma: 1
More
*SOLVED* PHD2 crashes on Help -> About... #37309
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?

openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI1600+EFW+EAF+ASI290 mini

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

1 year 6 months ago
klaus
Expert Boarder
Expert Boarder
Posts: 126
Karma: 1
More
Topic Author
*SOLVED* PHD2 crashes on Help -> About... #37322
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

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

1 year 6 months ago 1 year 6 months ago by maxer. Reason: Missed a name..
maxer
Gold Boarder
Gold Boarder
Posts: 261
Karma: 1
More
*SOLVED* PHD2 crashes on Help -> About... #37328
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 :)

EQ8, Small scope SW200, Big scope SW300, Xagyl FW, Guidescope Celestron 80mm, SX LodestarX2, SXVR-H9.
RPi3, Ubuntu Mate, and many Arduinos..

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

1 year 6 months ago
klaus
Expert Boarder
Expert Boarder
Posts: 126
Karma: 1
More
Topic Author
*SOLVED* PHD2 crashes on Help -> About... #37330
I get

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

Looks good.

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

1 year 6 months ago
maxer
Gold Boarder
Gold Boarder
Posts: 261
Karma: 1
More
*SOLVED* PHD2 crashes on Help -> About... #37332
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..??

EQ8, Small scope SW200, Big scope SW300, Xagyl FW, Guidescope Celestron 80mm, SX LodestarX2, SXVR-H9.
RPi3, Ubuntu Mate, and many Arduinos..

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

1 year 6 months ago
klaus
Expert Boarder
Expert Boarder
Posts: 126
Karma: 1
More
Topic Author
*SOLVED* PHD2 crashes on Help -> About... #37349
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

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

1 year 6 months ago
maxer
Gold Boarder
Gold Boarder
Posts: 261
Karma: 1
More
*SOLVED* PHD2 crashes on Help -> About... #37354
That's great :) and happy to help you!

CS
/Markku

EQ8, Small scope SW200, Big scope SW300, Xagyl FW, Guidescope Celestron 80mm, SX LodestarX2, SXVR-H9.
RPi3, Ubuntu Mate, and many Arduinos..

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

Time to create page: 1.208 seconds