Scripting CustomObjectMgr.addCustomObject() crash in CustomObject::getNameI18n()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Alexander Wolf |
Bug Description
Tried 0.15.1 on Windows and Ubuntu binary 0.16.1.
Launch, hit F12.
Type:
core.moveToRaDe
CustomObjectMgr
Both versions crash.
On Linux, the backtrace is shown below:
#0 0x00007ffff655cb01 in ?? () from /usr/lib/
#1 0x00007ffff6567c3f in QString:
#2 0x00000000006d88e7 in CustomObject:
#3 0x00000000006d86b3 in CustomObject:
#4 0x00000000006da5b9 in CustomObjectMgr
#5 0x000000000060b11a in StelApp::draw() ()
...
Code in github looks like:
QString CustomObject:
{
QString r = designation;
if (isMarker)
{
QStringList cod = designation.split(" ");
r = QString("%1 %2").arg(
}
return r;
}
So I tried again on Windows with "Marker 1" instead of "Marker". It doesn't crash.
Related branches
Changed in stellarium: | |
status: | New → Confirmed |
milestone: | none → 0.17.0 |
assignee: | nobody → Alexander Wolf (alexwolf) |
importance: | Undecided → Medium |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
A fix has been committed as revision 9870 of the trunk branch in Stellarium's Bazaar repository at Launchpad: http:// bazaar. launchpad. net/~stellarium /stellarium/ trunk/revision/ 9870
Thanks for report!