"Create Item" segfault (v.0.58)

Mar 22, 2020, 1:03 pm
#1
Joined: Mar 22, 2020
Posts: 2
Hello, first post here, sorry if wrong formatting.

Basically, when opening crafting menu, selecting to "create item" and then pressing Esc, the game crashes.

When I did it after running IVAN from terminal, I got this message:

vilius@vilius-ThinkPad-T430:~$ ivan
Segmentation fault
ivan(_ZN18globalerrorhandler22DumpStackTraceToStdErrEi+0x34)[0x55691373e068]
ivan(_Z12CrashHandleri+0x15)[0x5569136c9dc0]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7fd87e125f20]
ivan(_ZNK8material9GetVolumeEv+0xc)[0x5569134b36be]
ivan(_ZN12srpForgeItem4workER10recipedata+0x389)[0x55691359672d]
ivan(_ZN9craftcore5CraftEP9character+0xc1d)[0x55691357c5b9]
ivan(_ZN9craftcore5CraftEP9character+0xbdb)[0x55691357c577]
ivan(_ZN13commandsystem5CraftEP9character+0x18)[0x55691357b7c4]
ivan(_ZN9character16GetPlayerCommandEv+0x493)[0x5569134d2c23]
ivan(_ZN9character2BeEv+0x624)[0x5569134c5b12]
ivan(_ZN4pool2BeEv+0x3b)[0x5569135aa6b9]
ivan(_ZN4game3RunEv+0x3d5)[0x5569135ef7a1]
ivan(main+0x631)[0x5569136ca448]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fd87e108b97]
ivan(_start+0x2a)[0x5569134af22a]

I am running v0.58, on Xubuntu 18.04.4 and I have compiled the game myself.
Mar 22, 2020, 1:23 pm
#2
Joined: Apr 2, 2014
Occupation: Navastating
Location: Aslona
Posts: 764
Maybe zero or NULL volume got passed to the Forge Item recipe when you escaped from it and that caused a segfault?

Thanks for the report.
Mar 22, 2020, 7:10 pm
#3
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
Hi winsalot! Welcome to the forum.

red_kangaroo wrote
Maybe zero or NULL volume got passed to the Forge Item recipe when you escaped from it and that caused a segfault?

I love the way your IVAN dev work over the years has made you into a great programming guru Holybanana always wanted IVAN to be a vehicle for others to learn C/C++
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Mar 22, 2020, 7:52 pm
#4
Joined: Mar 22, 2020
Posts: 2
Thanks for looking into it.

I had some more segfaults today. (I really hope they were not related to my safescumming haha)

In particular, game would often segfault when Mirror Imps would hit me (or maybe I hit them?).

Also, GC7 (the mystic one) was almost unplayable because of segfaults that seemingly would happen out of nowhere.

I could share my savefile if that would be helpful.
Mar 23, 2020, 7:16 am
#5
Joined: Apr 2, 2014
Occupation: Navastating
Location: Aslona
Posts: 764
fejoa wrote
I love the way your IVAN dev work over the years has made you into a great programming guru Holybanana always wanted IVAN to be a vehicle for others to learn C/C++

IVAN definitely got me into programming. I think it's admirable how simple and transparent the code is. You can understand many parts without any knowledge of coding and then delve deeper. And the community is great, too.

I still feel much more confident with Python than with C++, but maybe I'll get there in time.

winsalot wrote
I had some more segfaults today. (I really hope they were not related to my safescumming haha)

In particular, game would often segfault when Mirror Imps would hit me (or maybe I hit them?).

Also, GC7 (the mystic one) was almost unplayable because of segfaults that seemingly would happen out of nowhere.

Nothing should break if you're savescumming by copying your savefiles elsewhere and then back once you die, unless you don't copy all the files.

I'll have a look at the mirror imps. I think there might be a problem when a magic beam other than from a wand hits them.
Jump to