Status & Roadmap
Authors & License
Funding Ultimate++
Search on this site
Search in forums

SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Upp svn8813 crashes on X11 backend
Upp svn8813 crashes on X11 backend [message #45007] Sun, 16 August 2015 13:55 Go to next message
Zbych is currently offline  Zbych
Messages: 327
Registered: July 2009
Senior Member

I generated basic GUI application:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <UppTest2/UppTest2.lay>
#include <CtrlCore/lay.h>

class UppTest2 : public WithUppTest2Layout<TopWindow> {
	typedef UppTest2 CLASSNAME;
	UppTest2() { CtrlLayout(*this, "Window title"); }


and it runs fine with GTK backend, but as soon as I add NOGTK flag it starts crashing.

Stack trace (Ubuntu 14.04, 64-bit, gcc 4.8.4):
#0  0x00007ffff7acbcb9 in XAddExtension () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1  0x00007ffff72866a5 in ?? () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#2  0x00007ffff7286b6e in XftDefaultHasRender () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#3  0x00007ffff7287050 in XftDefaultSubstitute () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#4  0x00007ffff7289705 in XftFontMatch () from /usr/lib/x86_64-linux-gnu/libXft.so.2
#5  0x00000000005599af in Upp::CreateXftFont (font=..., angle=0) at /home/zbych/upp/uppsrc/CtrlCore/DrawTextX11.cpp:39
#6  0x0000000000559d8a in Upp::GetXftFont (cache=0xace5e0 <Upp::GetXftMetricFont(Upp::Font, int)::cache>, fnt=..., angle=0) at /home/zbych/upp/uppsrc/CtrlCore/DrawTextX11.cpp:94
#7  0x0000000000559e7f in Upp::GetXftMetricFont (fnt=..., angle=0) at /home/zbych/upp/uppsrc/CtrlCore/DrawTextX11.cpp:107
#8  0x0000000000559ec5 in Upp::XftGetFontInfoSys (font=...) at /home/zbych/upp/uppsrc/CtrlCore/DrawTextX11.cpp:114
#9  0x000000000056d99d in Upp::GetFontInfoSys (font=...) at /home/zbych/upp/uppsrc/Draw/FontFc.cpp:140
#10 0x000000000056c33e in Upp::GetFontInfo (font=...) at /home/zbych/upp/uppsrc/Draw/Font.cpp:509
#11 0x000000000056c487 in Upp::Font::Fi (this=0x7fffffffdd40) at /home/zbych/upp/uppsrc/Draw/Font.cpp:546
#12 0x00000000004b65ee in Upp::Font::GetCy (this=0x7fffffffdd40) at /home/zbych/upp/uppsrc/Draw/Draw.h:156
#13 0x000000000056a5da in Upp::Font::SyncStdFont () at /home/zbych/upp/uppsrc/Draw/Font.cpp:120
#14 0x000000000056a7ab in Upp::Font::InitStdFont () at /home/zbych/upp/uppsrc/Draw/Font.cpp:170
#15 0x000000000056a7f9 in Upp::Font::GetStdFont () at /home/zbych/upp/uppsrc/Draw/Font.cpp:176
#16 0x00000000004b69c1 in Upp::GetStdFont () at /home/zbych/upp/uppsrc/Draw/Draw.h:245
#17 0x0000000000569fc4 in Upp::sInitFonts () at /home/zbych/upp/uppsrc/Draw/Font.cpp:43
#18 0x0000000000569ffc in Upp::s__sF0_46_fn () at /home/zbych/upp/uppsrc/Draw/Font.cpp:47
#19 0x00000000004b0d9c in Upp::Callinit::Callinit (this=0xaef458 <Upp::s__sF0_46>, fn=0x569ff3 <Upp::s__sF0_46_fn()>, cpp=0x6e32c0 "/home/zbych/upp/uppsrc/Draw/Font.cpp", line=46)
    at /home/zbych/upp/uppsrc/Core/Defs.h:172
#20 0x000000000059a042 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /home/zbych/upp/uppsrc/Draw/Font.cpp:46
#21 0x000000000059a129 in _GLOBAL__sub_I__ZN3Upp3StdERNS_4FontE () at /home/zbych/upp/uppsrc/Draw/SSettings.cpp:43
#22 0x00000000006a26fd in __libc_csu_init ()
#23 0x00007ffff5977e55 in __libc_start_main (main=0x40780d <main(int, char const**, char const**)>, argc=1, argv=0x7fffffffdf88, init=0x6a26b0 <__libc_csu_init>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffdf78) at libc-start.c:246
#24 0x0000000000407749 in _start ()

It looks that there is something wrong with fonts creation.
Re: Upp svn8813 crashes on X11 backend [message #45024 is a reply to message #45007] Thu, 20 August 2015 08:41 Go to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Thanks for reporting, should be now fixed.
Previous Topic: Resizing popup fails
Next Topic: TabCtrl black fon
Goto Forum:

Current Time: Thu Jun 13 18:14:27 CEST 2024

Total time taken to generate the page: 0.02293 seconds