Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Thiago Macieira
On Tuesday 10 November 2015 08:01:53 Etienne Sandré-Chardonnal wrote: > Hi, > > I have fixed the crash problem, but the double destructor is still there. > For the record, what is the compiler mechanism behind this? Without knowing the source code and the assembly, I could only guess. The most l

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
By the way, I would have expected QQbject to "deparent" C before the destroyed() signal is sent to connected slots. This would have prevented the crash there. Etienne 2015-11-10 8:01 GMT+01:00 Etienne Sandré-Chardonnal : > Hi, > > I have fixed the crash problem, but the double destructor is sti

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
Hi, I have fixed the crash problem, but the double destructor is still there. For the record, what is the compiler mechanism behind this? The crash issue was simple : I have three QObjects with parents A -> B -> C (grandchild) The C destructor was sending destroyed() signal to B slot, which was

[Interest] Qt at iOS: Crash on null QWindow pointer in QIOSInputContext::scrollToCursor

2015-11-09 Thread Robert Iakobashvili
Gentlemen, My app was crashing on a null QWindow pointer from focusView() in QIOSInputContext::scrollToCursor Unfortunately, my attempt to create a reproducing example failed; thus, a formal bug-report is not an option. The scenario is: sending an email from a native popover over a Qt-widget app,

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Thiago Macieira
On Monday 09 November 2015 16:21:44 Etienne Sandré-Chardonnal wrote: > Dear all, > > I am debugging an app which crashes when an object is being deleted. The > debuggers halt on a segmentation fault inside QObject destructor. The > object deletion was requested by a call to deleteLater() > > Here

[Interest] MOC Error replicating Qt5 Application build on other Windows MSVC 2010 machines

2015-11-09 Thread Phil Weinstein
We achieved a successful Qt 5.5.1 build of our large Qt 4.8 application, built with MSVC 2010, 64-bit. But this build is succeeding only on the single machine on which Qt 5.5.1 was actually built. When we try to compile our application on another machine, we are getting many of these ERRORS i

Re: [Interest] Can QObject::tr() be used in initialization of static const QString data members? [Qt 5.5.1, Windows]

2015-11-09 Thread Thiago Macieira
On Monday 09 November 2015 11:28:45 Phil Weinstein wrote: > We're not currently using Qt translation. But, FWIW, if we were to, I > guess we would initialize static QStrings in the following way (and not > worry about them being 'const'): I advise against static QStrings altogether. Just don't do

Re: [Interest] Can QObject::tr() be used in initialization of static const QString data members? [Qt 5.5.1, Windows]

2015-11-09 Thread Phil Weinstein
Thiago, thanks so much for your precise reply. We will remove QObject::tr() from static const QString initializations. We're not currently using Qt translation. But, FWIW, if we were to, I guess we would initialize static QStrings in the following way (and not worry about them being 'const')

Re: [Interest] QSoundEffect Categories on Android

2015-11-09 Thread Pendleton, Corey
Thanks for the reply Andrew! That helps a lot. I did notice that QSoundEffect is initializing it's category to the string "game" and that it is managed by the Media stream volume on Android. That string is obviously different than the one being used by QAudioOutput which is probably why you're

Re: [Interest] application appearance changing when laptop goes in saving energy mode

2015-11-09 Thread Robert Iakobashvili
Perhaps, there are issues reported as switch-over between monitors or graphical cards? Sorry, no clues. Regards, Robert On Mon, Nov 9, 2015 at 5:45 PM, maitai wrote: > Thanks Robert for your reply, > > In fact I succeeded to reproduce partly the problem. I have a laptop with 2 > graphic cards,

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
> > Are you sure that in some way it’s not child of itself ? > Qt automatically destroy all children of an QObject … and I really don’t > know how safe is Qt to assign itself as child. > The parent is set upon creation, to the class which creates and manages it. But I will triple check. However, i

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Gian Maxera
Are you sure that in some way it’s not child of itself ? Qt automatically destroy all children of an QObject … and I really don’t know how safe is Qt to assign itself as child. Ciao, Gianluca. > On 9 Nov 2015, at 15:55, Etienne Sandré-Chardonnal > wrote: > > Dear Gian, > > I have checked th

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
Dear Gian, I have checked that of course. But this is not the case, the destructor has been reduced to a single call to qDebug (see my other mail) and the error persists. Also, when I set a breakpoint on the qDebug line, the debugger halts on the second call (both are already in the stack) which i

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
Dear Konstantin, Sorry, I should have included the code... Here is it. The answer is definitely not inside. RendererInterface::~RendererInterface() { qDebug("RendererInterface : destroyed"); //Line 119 //Ensure renderThread finishes its execution as it will be deleted (child) /*if(

Re: [Interest] application appearance changing when laptop goes in saving energy mode

2015-11-09 Thread maitai
Thanks Robert for your reply, In fact I succeeded to reproduce partly the problem. I have a laptop with 2 graphic cards, switchable. Whenever the PC goes in power-saving mode, it switches to the intel one. When this happens, my menubar (regular QMenuBar) is changing font and becomes ugly, and

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Gian Maxera
> On 9 Nov 2015, at 15:38, Konstantin Tokarev wrote: > > > > 09.11.2015, 18:22, "Etienne Sandré-Chardonnal" : >> Dear all, >> >> I am debugging an app which crashes when an object is being deleted. The >> debuggers halt on a segmentation fault inside QObject destructor. The object >> deleti

Re: [Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Konstantin Tokarev
09.11.2015, 18:22, "Etienne Sandré-Chardonnal" : > Dear all, > > I am debugging an app which crashes when an object is being deleted. The > debuggers halt on a segmentation fault inside QObject destructor. The object > deletion was requested by a call to deleteLater() > > Here is what I get in

[Interest] Qt Android: how does Qt communicate with the audio system?

2015-11-09 Thread Nuno Santos
Hi, I was wondering how does Qt communicate with the audio device on Android. Does it need to talk with the Android media server? Or does it open the audio devices directly at the system level? I’m working on a app that uses audio and if I want low latency, i’m forcing the sound buffer to be s

[Interest] Destructor appearing twice in the stack trace?

2015-11-09 Thread Etienne Sandré-Chardonnal
Dear all, I am debugging an app which crashes when an object is being deleted. The debuggers halt on a segmentation fault inside QObject destructor. The object deletion was requested by a call to deleteLater() Here is what I get in the stack trace: 0QObject::~QObjectqobject.cpp993

Re: [Interest] Qt and 'FitNesse' acceptance testing framework

2015-11-09 Thread Harri Porten
On Mon, 9 Nov 2015, Ch'Gans wrote: Any experience to share on using FitNesse with Qt? Or maybe you guys use a different tool and/or approach? BDD (Behavior-driven Development or Testing) might be an approach you'll like equally much. Features and scenarios are described in plain English (or

[Interest] Qt 5.5.1 - Android - applicationStateChanged is reported wrong on first run

2015-11-09 Thread Nuno Santos
Hi, This weekend I have been faced with a problem and I would like to share it with you before submitting a bug report. My apps relies on QtGuiApplication applicationStateChanged to start and stop some services when the app is active, inactive, suspended, etc It happens that, on the first run

Re: [Interest] Qt (5.5.1) Quick Widgets Example crash EGL_BAD_SURFACE on Android?

2015-11-09 Thread maitai
Hello, The example giving in qt doc concerning qquickwidget (a bit modified because I insert the qquickwidget in a qdialog layout) works for me on Android, but I need to send the app background and foreground to get it working. If I remove the animation from the qml file it works straight away

Re: [Interest] application appearance changing when laptop goes in saving energy mode

2015-11-09 Thread Robert Iakobashvili
On Mon, Nov 9, 2015 at 7:54 AM, maitai wrote: > > Hello > > On Windows, some users are reporting that the application style (font? > palette?) is changing when laptop goes in energy saving mode, and becomes > more or less unreadable (white font on white background, etc). I have seen > that myse

[Interest] Debugging into Qt sources under ubuntu

2015-11-09 Thread Etienne Sandré-Chardonnal
Hi, In order to understand a complex bug, I'm trying tu step into Qt sources when debugging with Qt Creator under ubuntu. As I'm using the ubuntu package for Qt5 libs, I also installed the debugging symbols (qt5base-sbg) and the sources with apt-get source. GDB under Qt creator seem to find the