https://bugs.kde.org/show_bug.cgi?id=528779
Bug ID: 528779
Summary: macOS DMG 3.8.5 crashes when dragging the sky map on
macOS 27.2 / 15.8.2 (Qt 6.11 bug QTBUG-147602 in
QImage::toCGImage)
Classification: Applications
Product: kstars
Version First 3.8.5
Reported In:
Platform: macOS (DMG)
OS: macOS
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
KStars 3.8.5 from the macOS DMG crashes every time the sky map is dragged on
recent macOS versions. Both the arm64 and Intel DMGs are affected. It also
happens with KStars 3.8.4, but not with 3.8.3. The current master nightly build
(kstars-master, arm64) does not crash.
Reproduced on:
- macOS 27.2.1 (26B131), MacBook Pro M1, KStars 3.8.5 arm64
- macOS 15.8.2 and 27.2.1, MacBook Air M1, KStars 3.8.4/3.8.5 (arm64 and
Intel), reported by another user
With macOS 27.0.1, KStars 3.8.5 did not crash.
CRASH REPORT (main thread)
EXC_BREAKPOINT (SIGTRAP)
0 CoreFoundation __CF_IS_OBJC
1 CoreFoundation CFGetTypeID
2 CoreGraphics CGColorSpaceGetType
3 CoreGraphics valid_image_colorspace
4 CoreGraphics verify_image_parameters
5 CoreGraphics CGImageCreate
6 QtGui QImage::toCGImage() const
7 QtGui ...
8-10 libqcocoa.dylib
11 QtGui QWindowPrivate::setCursor(QCursor const*)
13 QtWidgets QWidget::setCursor(QCursor const&)
14-15 kstars
16 QtWidgets QWidget::event(QEvent*)
...
22 QtWidgets QApplicationPrivate::sendMouseEvent(...)
The bundled Qt frameworks are version 6.11.
CAUSE
This matches the known Qt bug QTBUG-147602: in Qt 6.11.0 and 6.11.1,
QImage::toCGImage() passes an already released color space to CGImageCreate().
Older macOS versions hid this, but macOS 27.2 (and 15.8.2) crash. It is fixed
in Qt 6.11.2 (qtbase commit a481ede). The same crash has been reported by other
Qt applications, for example KeePassXC, OBS Studio, QGIS and Mudlet.
When the sky map is dragged, SkyMap changes the cursor (e.g. Qt::SizeAllCursor
in setMouseMoveCursor), and Qt converts the cursor image with
QImage::toCGImage(), which triggers the crash.
SUGGESTION
Rebuild the 3.8.5 macOS DMGs (arm64 and Intel) with Qt 6.11.2 or later, as the
master nightly build seems to be.
I can attach the full crash report (.ips) if needed.
--
You are receiving this mail because:
You are watching all bug changes.