Unrecoverable error 6005: Exception error: Exception Code:C0000005 ACCESS_VIOLATION

50 views
Skip to first unread message

Zoran Sibinovic

unread,
May 23, 2023, 5:23:50 AM5/23/23
to QtContribs
Hi to all,

time ago I started this problem.
I thought that maybe it was solved whit the latest revisions due to how the classes are handled but, the problem still appears.

For those  who are not familiar with the problem I will explain it again.
I use Windows no matter the version, the issue is the same, and appears on different computers also.

With the 5.6.0 version of Qt, every dialog created with oDlg := hbqtui_...() cause the app termination with the described errors in the logs attached to this post.
The app that can be used for the test is composite.prg from the tests folder
The issue can be provoked  by opening and closing the "Customer info" menu item. The number of open/close times, till the termination succeded is random, sometimes 5-6 sometimes more, but everytime terminates with the crash of the entire app.
The Qt 5.5.1 version is the latest with which everything works normal.

I read the What's new about the Qt 5.6 version at: 

and seen that they changed something about the memory usage, the GUI, etc.  

This is my environment sets for Qt 5.6.3:

SETX -m HB_QT_MAJOR_VER "5"
SETX -m HB_QT_MINOR_VER "5"
SETX -m HB_INSTALL_PREFIX "c:\hb"

SETX -m MGWHOME     "c:\Qt\Qt5.6.3\Tools\mingw492_32"
SETX -m MGWBIN      "c:\Qt\Qt5.6.3\Tools\mingw492_32\bin"

SETX -m QTHOME      "c:\Qt\Qt5.6.3\5.6.3\mingw49_32"
SETX -m HB_QTPATH   "c:\Qt\Qt5.6.3\5.6.3\mingw49_32\bin"
SETX -m HB_WITH_QT  "c:\Qt\Qt5.6.3\5.6.3\mingw49_32\include"
SETX -m QTPLATFORMS "c:\Qt\Qt5.6.3\5.6.3\mingw49_32\plugins\platforms"

REM c:\hb
REM c:\hb\bin\win\mingw
REM %MGWHOME%
REM %MGWBIN%
REM %QTHOME%
REM %HB_QTPATH%
REM %HB_WITH_QT%
REM %QTPLATFORMS%
REM - added directly in OS environment parameters PATH 

So did I missed something?
Thanks for every answer.
Zoran



hb_out 5.6.3.log
hb_out5.6.0.log

Pritpal Bedi

unread,
May 29, 2023, 8:54:16 PM5/29/23
to QtContribs
Hi Zoran

I never recommended 5.6. Use either 5.5 or 5.8 where I do not see any crash.


Pritpal Bedi
a student of software analysis & concepts

Zoran Sibinovic

unread,
May 30, 2023, 2:05:32 AM5/30/23
to QtContribs
Hi Pritpal,
thank you for this tip I didn't know about this.

One thing more, did I have to add some additional environvent parameters to mine above descripted to make work the 5.8 version and that are not been required for the 5.5 version?

Thank you again
Zoran

Zoran Sibinovic

unread,
May 31, 2023, 4:05:59 AM5/31/23
to QtContribs
Hi Pritpal,

I compiled harbour and Qtcontribs with Qt 5.8.0 with this environment parameters ...


SETX -m HB_INSTALL_PREFIX "c:\hb"

REM /*----------------------------------------------------------------*/
REM ....... Qt settings
REM /*----------------------------------------------------------------*/

SETX -m QTROOT       "c:\Qt\Qt5.8.0"
SETX -m QTHOME      "c:\Qt\Qt5.8.0\5.8\mingw53_32"
SETX -m QTBIN           "c:\Qt\Qt5.8.0\5.8\mingw53_32\bin"
SETX -m QTINC           "c:\Qt\Qt5.8.0\5.8\mingw53_32\include"

REM /*----------------------------------------------------------------*/
REM ....... MINGW
REM /*----------------------------------------------------------------*/

SETX -m MGWHOME     "c:\Qt\Qt5.8.0\Tools\mingw530_32"
SETX -m MGWBIN          "c:\Qt\Qt5.8.0\Tools\mingw530_32\bin"

REM /*----------------------------------------------------------------*/
REM ....... required
REM /*----------------------------------------------------------------*/

SETX -m HB_WITH_QT      "c:\Qt\Qt5.8.0\5.8\mingw53_32\include"
SETX -m HB_QTPATH       "c:\Qt\Qt5.8.0\5.8\mingw53_32\bin"
SETX -m HB_QT_MAJOR_VER "5"
SETX -m HB_QT_MINOR_VER "8"
SETX -m HB_USER_CFLAGS  "-std=gnu++11"

SETX -m QTPLATFORMS     "c:\Qt\Qt5.8.0\5.8\mingw53_32\plugins\platforms"

REM c:\hb; c:\hb\bin\win\mingw; %MGWHOME%; %MGWBIN%; %QTHOME%;  %HB_QTPATH%; %HB_WITH_QT%; %QTPLATFORMS% (directly added in OS environment parameters PATH) 

... and still got the hb_out in the attachment after open/close "Customer info" in composite.exe ...
this happened after at the 7-th consecutive dialog opening ... but it is a random opening number

I really don't understand what I'm doing wrong.

Thanks
Zoran

hb_out.log

Pritpal Bedi

unread,
Jun 5, 2023, 10:28:25 PM6/5/23
to QtContribs
Hi Zoran

I could reproduce the error - after 17 iterations it booms. Will see what can be done to handle such situations.


Pritpal Bedi
a student of software analysis & concepts


Reply all
Reply to author
Forward
0 new messages