KDAB / KDReports

Qt library for generating printable and exportable reports from code and from XML descriptions.
https://www.kdab.com/kd-reports/
Other
129 stars 44 forks source link

crashed when call showMaximized() in constructor #39

Closed CMLDMR closed 1 year ago

CMLDMR commented 1 year ago

everything going well until the call showMaximized(), and then crashed.

affected version 2.2.0

dfaure-kdab commented 1 year ago

Can you give much more detail?

CMLDMR commented 1 year ago

image

dfaure-kdab commented 1 year ago

Please rebuild both your application and KDReports in debug mode, so that the backtrace gives us more information.

CMLDMR commented 1 year ago

this is default rebuild cmake options with Qt6 enabled, rest options is default cmake:

Running C:\Qt\Tools\CMake_64\bin\cmake.exe -S H:/C/KDReports/kdreports-2.2.0 -B H:/C/KDReports/build-kdreports-2.2.0-Desktop_Qt_6_3_1_MSVC2022_64bit-Debug in H:\C\KDReports\build-kdreports-2.2.0-Desktop_Qt_6_3_1_MSVC2022_64bit-Debug. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE
-- Found WrapVulkanHeaders: C:/VulkanSDK/1.3.224.1/Include
-- Could NOT find KDChart-qt6 (missing: KDChart-qt6_DIR) -- Building KDReports 2.2.0 in Debug mode. Installing to C:/Program Files (x86)/KDReports -- KDChart not found. skipping the ChartXML example -- The following OPTIONAL packages have been found:

-- The following REQUIRED packages have been found:

-- The following OPTIONAL packages have not been found:

-- Configuring done -- Generating done -- Build files have been written to: H:/C/KDReports/build-kdreports-2.2.0-Desktop_Qt_6_3_1_MSVC2022_64bit-Debug Elapsed time: 00:02.

image

dfaure-kdab commented 1 year ago

This isn't a backtrace. The first screenshot, but in debug mode, is what we need.

CMLDMR commented 1 year ago

this is debug mode image

dfaure-kdab commented 1 year ago

See the qFatal from Qt, in the QWidget constructor.

Are you creating a QApplication in main()? My guess is that this is what's missing.

CMLDMR commented 1 year ago

Yes Created. image

CMLDMR commented 1 year ago

how can I see qFatal in QWidget, is it step by step in debug mode?

dfaure-kdab commented 1 year ago

"Application Output" tab, no?

CMLDMR commented 1 year ago

yes you are right but QApplication called firstly, can you check it from below github link. it small project image

https://github.com/CMLDMR/FaaliyetReporter/tree/on_bilgi_giris

dfaure-kdab commented 1 year ago

This is clearly not a KDReports problem.

For me to help further, I would have to indeed debug into your application, which isn't something I can do for free.

Please contact info@kdab.com to get a consulting offer.