derclou icon indicating copy to clipboard operation
derclou copied to clipboard

Right-click may cause segmentation fault

Open yayachiken opened this issue 3 years ago • 0 comments

The game will crash with a segmentation fault on some screens when right-clicking.

So far I have found:

  • when right-clicking while on the "Planing" home screen (after entering the Planing mode but before entering the map.)

Backtrace:

Thread 1 "derclou" received signal SIGSEGV, Segmentation fault.
0x0000555555582311 in DrawMenu (menu=menu@entry=0x55555612e000, nr=nr@entry=255 '\377', mode=mode@entry=3) at present/interac.c:77
77		m1 = NODE_NAME(GetNthNode(menu, i));
(gdb) bt
#0  0x0000555555582311 in DrawMenu (menu=menu@entry=0x55555612e000, nr=nr@entry=255 '\377', mode=mode@entry=3) at present/interac.c:77
#1  0x0000555555582e06 in Menu (menu=menu@entry=0x55555612e000, possibility=possibility@entry=255, activ=activ@entry=255 '\377', func=func@entry=0x0, waitTime=waitTime@entry=0) at present/interac.c:206
#2  0x0000555555575c7b in tcOrganisation () at organisa/organisa.c:188
#3  0x0000555555561e82 in StdHandle (choice=choice@entry=32) at gameplay/gp_app.c:461
#4  0x0000555555562bd4 in StdDone () at gameplay/gp_app.c:542
#5  0x00005555555652e4 in PlayStory () at gameplay/gp.c:246
#6  0x0000555555556ae3 in tcDo () at base/base.c:552
#7  main (argc=<optimized out>, argv=<optimized out>) at base/base.c:700
  • when right-clicking when in a scene and having the selector menu open which offers you a place to go.

Backtrace:

Thread 1 "derclou" received signal SIGSEGV, Segmentation fault.
0x000055555558bfe1 in Go (succ=0x5555561399e0) at scenes/scenes.c:116
116		succ_eventnr =
(gdb) bt
#0  0x000055555558bfe1 in Go (succ=0x5555561399e0) at scenes/scenes.c:116
#1  0x0000555555561bd9 in StdHandle (choice=choice@entry=1) at gameplay/gp_app.c:375
#2  0x0000555555562bd4 in StdDone () at gameplay/gp_app.c:542
#3  0x00005555555652e4 in PlayStory () at gameplay/gp.c:246
#4  0x0000555555556ae3 in tcDo () at base/base.c:552
#5  main (argc=<optimized out>, argv=<optimized out>) at base/base.c:700

yayachiken avatar Jan 28 '22 03:01 yayachiken