Segfault/assertion failure in sky image loading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Run the script tests/sky_
ASSERT: "fabs(n2.
I'll post backtraces if necessary, but it's simple to reproduce the error. Note that in both cases, Stellarium crashed in the image display code. This means that the image was already loaded, but I would guess the data is corrupted. Changing the file name in the script from "../textures/
Mike
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
This also happens when you press "c" to show the constellation lines. The backtraces now make me suspect a bug in StelGeom, but I can't know for sure since I don't understand the code. Also, running the tests/sky_image.ssc script crashes instantly now, instead of just after loading the first image. Strange.
Here's the backtrace of pressing "c": QtFatalMsg, n2.lengthSquare d()-1.) <0.000001\ " in file /home/michael/ stellarium- tmp/src/ core/StelSphere Geometry. cpp, line 145") qglobal. cpp:2001 0x7ff7047be140 "ASSERT: \"%s\" in file %s, line %d") qglobal. cpp:2196 0x6f2938 "fabs(n2. lengthSquared( )-1.)<0. 000001" , michael/ stellarium- tmp/src/ core/StelSphere Geometry. cpp", line=145) at global/ qglobal. cpp:1772 :planeIntersect 2 (h1=@0x7fff0ec4 4cc0, @0x7fff0ec44ca0 , p1=@0x7fff0ec44d60, p2=@0x7fff0ec44d60) stellarium- tmp/src/ core/StelSphere Geometry. cpp:145 :drawOptim (this=0x29fd6d0, @0x7fff0ec44e80 , nav=0x22ecc00) stellarium- tmp/src/ modules/ Constellation. cpp:115 r::drawLines (this=0x26da080, @0x7fff0ec44e80 , nav=0x22ecc00) stellarium- tmp/src/ modules/ ConstellationMg r.cpp:488 r::draw
#0 0x00007ff702bc9015 in raise () from /lib/libc.so.6
#1 0x00007ff702bcab83 in abort () from /lib/libc.so.6
#2 0x00007ff70462fb74 in qt_message_output (msgType=
buf=0x2efc2a8 "ASSERT: \"fabs(
at global/
#3 0x00007ff70462fca1 in qFatal (
msg=
at global/
#4 0x00007ff704630185 in qt_assert (
assertion=
file=0x6f28d0 "/home/
#5 0x0000000000584859 in StelGeom:
h2=
at /home/michael/
#6 0x00000000005e25e6 in Constellation:
sPainter=
at /home/michael/
#7 0x00000000005e79a7 in ConstellationMg
sPainter=
at /home/michael/
#8 0x00000000005e7ae1 in ConstellationMg