LPub3D 2.0 Released


RE: LPub3D 2.0.2 Released
#21
(2016-06-24, 18:59)Roland Melkert Wrote:
(2016-06-24, 18:35)Trevor Sandy Wrote: Well you are experiencing the exact same behavior I am. And like you I find it very strange. More so that I'm not able to find the reason for the problem but I believe I know the source.

I don't think it is the end of your crashes, but let's see. In the mean time, I'm continuing to look for the problem source. Hopefully I can have it resolved this weekend.

Cheers,

This might be caused by an uninitialized variable as debug version/runs usually zero out those while a releases optimized that out. A crash is then left to chance as it depends on the value the variable happens to get on program start.

 Don't know how this works combined with a single (non debug) exe though but the debugger might have wiped the used memory or something.

Hi Roland - Actually to give some context on this issue. I saw it the first time after porting to Qt 5.6. This version of Qt introduced a lot of changes to the way graphics drivers are managed on Windows. Some of these changes I don't think are very backward compatible (at least, not without a great deal of rework). 

Anyway, this issue first presented with I set the application to force the use of OpenGL (myApp.setAttribute(Qt::AA_UseDesktopOpenGL)) versus using ANGLE which is the Windows-friendly default. However, using ANGLE is not an option as my imbedded LeoCAD module performs direct OpenGL calls. Nevertheless, ANGLE is still somehow a dependency.

I can consistently reproduce the crash if I enable the following MainWindow management code which worked without issue on Qt 4.8:

void Gui::readSettings()
{
   QSettings Settings;
   Settings.beginGroup(MAINWINDOW);
   restoreState(Settings.value("State").toByteArray());
   restoreGeometry(Settings.value("Geometry").toByteArray());
   QSize size = Settings.value("size", QSize(800, 600)).toSize();
   QPoint pos = Settings.value("pos", QPoint(200, 200)).toPoint();
   resize(size);
   move(pos);
   Settings.endGroup();
}


void Gui::writeSettings()
{
   QSettings Settings;
   Settings.beginGroup(MAINWINDOW);
   Settings.setValue("Geometry", saveGeometry());
   Settings.setValue("State", saveState());
   Settings.setValue("pos", pos());
   Settings.setValue("size", size());
   Settings.endGroup();
}


With this code, the application will launch without issue the first time. Once I move the window (let's say to another screen - Point(4121 161)) the application will crash. It is as if the pos coordinates become out of bounds or something.

The debugger points to a ScopedPointer problem relates to window management but I can't make heads or tails about where the problem is starting from. The picture below show a view of the debugger at the segmentation fault.

The interesting thing is when I disable the above code the crash is no longer consistent but becomes intermittent - as I have described it above and in the release notes. 

The debugging prompt when you encounter the error is just the operating system recognizing that a crash dump file is available and prompting the user to launch whichever application on the system that is designated for debugging.

   

Cheers,
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 6:16
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 16:20
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 11:07
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 13:41
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 14:42
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 15:20
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 16:11
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-06-23, 18:13
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 20:39
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-06-23, 21:05
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 18:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 20:45
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 5:37
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 18:35
RE: LPub3D 2.0.2 Released - by Roland Melkert - 2016-06-24, 18:59
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-25, 0:11
RE: LPub3D 2.0.2 Released - by Roland Melkert - 2016-06-25, 19:53
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-25, 10:10
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-26, 19:20
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 19:35
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 18:43
RE: LPub3D 2.0.2 Released - by Willy Tschager - 2016-07-05, 15:24
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-07-05, 20:53
RE: LPub3D 2.0.2 Released - by Willy Tschager - 2016-07-06, 13:28
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-07-07, 5:51
RE: LPub3D 2.0 Released - by David Manley - 2016-06-27, 8:58
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-27, 20:20
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-06-28, 4:14
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-28, 13:50
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-06-28, 20:48
RE: LPub3D 2.0 Released - by David Manley - 2016-06-28, 23:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-29, 17:50
RE: LPub3D 2.0 Released - by David Manley - 2016-06-29, 20:51
RE: LPub3D 2.0.3 Released - by Trevor Sandy - 2016-06-28, 14:10
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-06-30, 17:46
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-30, 21:24
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-30, 17:50
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-30, 21:30
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 16:08
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:28
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-07, 5:27
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 10:15
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-01, 11:54
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 14:00
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-02, 18:28
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-02, 19:43
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-03, 17:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:03
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-05, 20:27
LPub3D 2.0.4 Released - by Trevor Sandy - 2016-07-02, 2:23
RE: LPub3D 2.0.4 Released - by Trevor Sandy - 2016-07-03, 17:23
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:05
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-07, 3:43
LPub3D 2.0.5 Released - by Trevor Sandy - 2016-07-07, 8:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-08, 7:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-08, 7:46
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-07-15, 14:51
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-15, 17:08
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-07-17, 17:54
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-18, 13:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-19, 21:09
LPub3D 2.0.6 Released - by Trevor Sandy - 2016-07-18, 14:21
LPub3D 2.0.7 Released - by Trevor Sandy - 2016-07-22, 2:15
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-07-28, 20:09
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-29, 6:47
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-03, 4:18
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-03, 18:22
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-03, 22:47
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-03, 23:15
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-08-04, 5:06
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-04, 17:31
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-08-04, 19:36
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-04, 22:38
LPub3D 2.0.8 Released - by Trevor Sandy - 2016-08-05, 3:40
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-10, 18:22
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-08-10, 20:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-11, 1:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-18, 12:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-14, 23:47
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-15, 14:40
LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-05, 1:18
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 4:11
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 4:56
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 8:46
RE: LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-06, 8:52
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 10:17
RE: LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-06, 11:40
RE: LPub3D 2.0.9 Released - by Travis Cobbs - 2016-09-06, 17:29
LPub3D 2.0.10 Released - by Trevor Sandy - 2016-09-07, 22:16
RE: LPub3D 2.0.10 Released - by David Manley - 2016-09-07, 23:54
LPub3D 2.0.11 Released - by Trevor Sandy - 2016-09-19, 1:37
LPub3D 2.0.12 Released - by Trevor Sandy - 2016-09-20, 16:57
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-28, 9:47
LPub3D 2.0.13 Released - by Trevor Sandy - 2016-10-06, 15:31
LPub3D 2.0.14 Released - by Trevor Sandy - 2016-10-13, 14:36
LPub3D 2.0.15 Released - by Trevor Sandy - 2016-10-29, 4:21
RE: LPub3D 2.0.15 Released - by Robert - 2016-11-13, 9:47
RE: LPub3D 2.0.15 Released - by Trevor Sandy - 2016-11-19, 15:36
RE: LPub3D 2.0.15 Released - by Robert - 2016-11-20, 8:40
RE: LPub3D 2.0.15 Released - by Trevor Sandy - 2016-11-20, 14:15
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-13, 13:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 15:29
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 20:18
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 21:44
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 13:28
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 16:17
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 20:23
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 22:04
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 12:58
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 16:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 13:19
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-20, 13:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 14:28
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-20, 18:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 18:44
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 12:53
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-21, 15:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 16:06
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 15:21
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-27, 21:45
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-05, 0:32
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-02-20, 18:59
LPub3D 2.0 Released - by Trevor Sandy - 2016-12-08, 12:41
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-09, 10:01
LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-09, 12:24
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-09, 19:49
RE: LPub3D 2.0 for Linux - by Kevin - 2016-12-10, 5:27
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-13, 12:55
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-14, 22:57
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-14, 23:06
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-16, 13:58
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-15, 9:34
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-15, 12:05
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-15, 13:07
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-16, 14:07
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-09, 12:48
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-12-09, 14:42
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-09, 18:50
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-27, 10:05
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-27, 23:49
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-28, 14:55
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-31, 15:08
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-31, 15:02
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 2:32
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-01-02, 12:30
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 2:34
RE: LPub3D 2.0 Released - by Willy Tschager - 2017-01-09, 15:46
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:06
RE: LPub3D 2.0 Released - by Walt White - 2017-01-16, 19:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:19
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-01-22, 18:20
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:21
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-02-03, 14:14
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:30
LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-09, 4:15
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-12, 23:02
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-13, 19:12
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-13, 22:29
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-03-11, 15:37
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-05-03, 13:47
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-05-23, 16:06
RE: LPub3D 2.0 Released - by Kevin - 2017-06-02, 2:09
RE: LPub3D 2.0 Released - by Travis Cobbs - 2017-07-01, 2:29

Forum Jump:


Users browsing this thread: 8 Guest(s)