Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000160Mana ClientCorepublic2010-06-29 17:092010-07-08 20:54
ReporterHenneNWH 
Assigned ToJaxad0127 
PrioritynormalSeverityminorReproducibilityN/A
StatusresolvedResolutionopen 
PlatformOSUbuntuOS Version 10.4 x86_64
Product Version 
Target Version1.0.0Fixed in Version1.1.0 
Summary0000160: Segfault on taking loot which disappears
DescriptionI had a segfault with the current git client when I wanted to take a loot.
I clicked the loot, when I was some fields away.
When the character walked to the item it disapeared.
When the character readed a place to take the loot a segfault occured.
TagsNo tags attached.
Attached Files? file icon report [^] (1,348 bytes) 2010-06-30 22:08 [Show Content]
patch file icon 0001-Ironed-out-the-pickUp-handling.-Please-test.patch [^] (2,263 bytes) 2010-07-06 23:19 [Show Content]
? file icon report2 [^] (1,369 bytes) 2010-07-07 05:27 [Show Content]
patch file icon 0001-Fix-crash-in-picking-up-an-item-that-no-longer-exist.patch [^] (9,502 bytes) 2010-07-07 10:30 [Show Content]
patch file icon 0002-Fix-crash-in-picking-up-an-item-that-no-longer-exist.patch [^] (9,562 bytes) 2010-07-07 11:06 [Show Content]

- Relationships

-  Notes
(0000568)
Jaxad0127 (administrator)
2010-06-29 21:35

"When the character readed a place to take the loot a segfault occured."
I don't understand what you're saying here.
(0000569)
Bertram (developer)
2010-06-29 21:46

I guess he meant "reached" and not readed, maybe.
(0000572)
HenneNWH (reporter)
2010-06-30 05:57

Yes, I meant "reached". Sorry!
(0000573)
Jaxad0127 (administrator)
2010-06-30 06:32

I assume this is with the nightlies (made from mana git mainline). If not, please list the version you've reproduced it under.
(0000579)
HenneNWH (reporter)
2010-06-30 20:58

I build mana from git by myself.

The commit where the segfault happened to me was:
4a33f2bf841ec3c7b0a0555b3ea75c54a70be5e9
(0000580)
Jaxad0127 (administrator)
2010-06-30 21:13

I seriously doubt that commit is the issue.
(0000581)
HighlyIrrelevant (reporter)
2010-06-30 22:09

I included a report (latest commit, steps to reproduce, and backtrace).
(0000596)
Bertram (developer)
2010-07-06 23:20

I added a patch candidating for review and test. That should get rid of the crash.
(0000603)
HighlyIrrelevant (reporter)
2010-07-07 05:27
edited on: 2010-07-07 05:29

I carried out the same procedure I described earlier and included another report, showing essentially the same behavior/crash.

The item pointer seems to be delete'd in the ActorSpriteManager's logic loop, yet the memory location is still being accessed. Or at least, that's how it seemed at quick glance.

Edit: Typographical error.

(0000604)
Jaxad0127 (administrator)
2010-07-07 05:35

Do test the patch. Later (I'm in the middle of something large client-wise atm), I'll fix the other side of the issue (where the pointer is still being stored!).
(0000606)
HighlyIrrelevant (reporter)
2010-07-07 10:29
edited on: 2010-07-07 10:59

After some discussion about that pointer issue, I tried to give this a go. I
wasn't sure what to do about the previous patch, so I just included the
changes, with attribution, of course. Hopefully this takes care of the pointer
(LocalPlayer's protected mPickUpTarget), and should the method prove
acceptable, might even be used for the viewport. Even if another route is
decided upon, maybe this will still help...somehow. :-)

I would likewise appreciate testing. Though I haven't found any glaring issues
myself, at this hour I don't quite trust myself. ;-)

Edit: Sorry, I'm uploading an updated patch, as I did, in fact, leave glaring
issues.

(0000628)
Bertram (developer)
2010-07-08 20:54

Fixed with:
http://www.gitorious.org/mana/mana/commit/27efdd9a80c7d068f27db8725c2315fee3e10303 [^]

Thanks HenneNWH

- Issue History
Date Modified Username Field Change
2010-06-29 17:09 HenneNWH New Issue
2010-06-29 21:35 Jaxad0127 Note Added: 0000568
2010-06-29 21:46 Bertram Note Added: 0000569
2010-06-30 05:57 HenneNWH Note Added: 0000572
2010-06-30 06:32 Jaxad0127 Note Added: 0000573
2010-06-30 20:58 HenneNWH Note Added: 0000579
2010-06-30 21:13 Jaxad0127 Note Added: 0000580
2010-06-30 22:08 HighlyIrrelevant File Added: report
2010-06-30 22:09 HighlyIrrelevant Note Added: 0000581
2010-07-06 23:19 Bertram File Added: 0001-Ironed-out-the-pickUp-handling.-Please-test.patch
2010-07-06 23:20 Bertram Note Added: 0000596
2010-07-07 05:27 HighlyIrrelevant Note Added: 0000603
2010-07-07 05:27 HighlyIrrelevant File Added: report2
2010-07-07 05:29 HighlyIrrelevant Note Edited: 0000603 View Revisions
2010-07-07 05:35 Jaxad0127 Note Added: 0000604
2010-07-07 10:29 HighlyIrrelevant Note Added: 0000606
2010-07-07 10:30 HighlyIrrelevant File Added: 0001-Fix-crash-in-picking-up-an-item-that-no-longer-exist.patch
2010-07-07 10:32 HighlyIrrelevant Note Edited: 0000606 View Revisions
2010-07-07 10:59 HighlyIrrelevant Note Edited: 0000606 View Revisions
2010-07-07 11:06 HighlyIrrelevant File Added: 0002-Fix-crash-in-picking-up-an-item-that-no-longer-exist.patch
2010-07-08 20:54 Bertram Note Added: 0000628
2010-07-08 20:54 Bertram Assigned To => Jaxad0127
2010-07-08 20:54 Bertram Status new => resolved
2010-07-08 20:54 Bertram Fixed in Version => 1.1.0
2010-07-08 20:54 Bertram Target Version => 1.0.0


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker