Re: [Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-27 Thread Thiago Macieira
On Wednesday, 27 March 2019 14:48:16 PDT Matthew Woehlke wrote: > ==12997==by 0x598A728: QOpenGLVertexArrayObjectPrivate::destroy() > (qopenglvertexarrayobject.cpp:212) [...] > ==12997== Address 0x8 is not stack'd, malloc'd or (recently) free'd Line 212: if (QThread::currentThread()

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Thiago Macieira
On Wednesday, 27 March 2019 12:56:15 PDT Konstantin Tokarev wrote: > Note that it will only work if user has systemd installed Is there any modern Linux without it? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products __

Re: [Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-27 Thread John Weeks
I can't really answer your exact question, but I can tell you that we render QPainter drawing (including text) onto a QOpenGLWidget this way (not the real code...): QOpenGLWidget::paintGL() { QPainter painter(this); painter->beginNativePainting(); do your OpenGL dra

[Interest] Odd crash with QPainter + QOpenGLWidget

2019-03-27 Thread Matthew Woehlke
I've cargo-culted some code to render text over a QOpenGLWidget from another project: void MyWidget::paintEvent(QPaintEvent* event) { QOpenGLWidget::paintEvent(event); auto const& text = /* elided */; QPainter painter{this}; painter.setPen(Qt::white); painter.setFont(font

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Konstantin Tokarev
27.03.2019, 22:50, "Jérôme Godbout" : > Thanks, I have an issue that software reset my cdc_acm device inside a VM > make the xhci goes nuts (on native install it work just fine). So I will > print a message box when inside a VM and ask the user to unplug and replug > the device instead or soft

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
Thanks, I have an issue that software reset my cdc_acm device inside a VM make the xhci goes nuts (on native install it work just fine). So I will print a message box when inside a VM and ask the user to unplug and replug the device instead or software reset it. On native or Windows vm I will si

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Thiago Macieira
systemd-detect-virt -v if you don't want to be told about being run inside containers. Note that you can also use ConditionVirtualization in your systemd units if you need to start (or not start) a service. On Wednesday, 27 March 2019 11:37:42 PDT Jérôme Godbout wrote: > Nice, thanks Thiago! >

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
Nice, thanks Thiago! -Original Message- From: Interest On Behalf Of Thiago Macieira Sent: March 27, 2019 2:05 PM To: interest@qt-project.org Subject: Re: [Interest] Detemine Run into VM On Wednesday, 27 March 2019 09:11:11 PDT Jérôme Godbout wrote: > Is there a way to detect the applicat

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Thiago Macieira
On Wednesday, 27 March 2019 09:11:11 PDT Jérôme Godbout wrote: > Is there a way to detect the application run inside a VM from Qt? Run systemd-detect-virt. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products ___

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
Ok, cool, I was more looking for Linux in fact, the Windows VM doesn’t show the problems with cdc_acm (I have tons of other problems with Windows 7 and cdc_acm, but this one issue is only under Linux when it run inside a VM Virtual Box). From: Andy Sent: March 27, 2019 12:15 PM To: Jérôme Godb

Re: [Interest] Detemine Run into VM

2019-03-27 Thread Andy
For VMWare, I wrote this up a while ago: https://asmaloney.com/2018/09/code/how-to-tell-if-your-windows-application-is-running-inside-vmware/ Maybe something similar could be used for VirtualBox? --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney

[Interest] Detemine Run into VM

2019-03-27 Thread Jérôme Godbout
Is there a way to detect the application run inside a VM from Qt? I have a different behavior on how I need to handle a cdc_acm under VirtualBox (and possibly VMWare, but I haven't tested yet). I was looking at QSysInfo, but I'm nont sure I will be able to confirm this with it. Else I can run a