![]() |
#11 |
Swordsman
Join Date: Aug 2019
Posts: 340
![]() |
Not sure if this is the appropriate thread for a bug report about Xygos, but here's one
OS: macOS 10.15.7; Xcode 12.4 for the compiler; built from source (commit number 49cbe9eff8e17b20fe1bd8912f73675233b1bc62, "An easter egg ....", was HEAD) using Code:
./autogen.sh cd src; make -f Makefile.osx Code:
cave_monster_max(c=0) at cave.c:595 monster_list_new at mon-list.c:33 monster_list_shared_instance at mon-list.c:94 monster_list_show_subwindow(height=16, width=42) at ui-mon-list.c:354 update_monlist_subwindow(type=EVENT_MONSTERLIST, data=0, user=0x000000010054c3a8) at ui-display.c:1766 game_event_dispatch(type=EVENT_MONSTERLIST, data=0) at game-event.c:43 event_signal(type=EVENT_MONSTERLIST) at game-event.c:142 redraw_stuff(p=0x00000001028eba08) at player-calcs.c:2364 ui_enter_world(type=EVENT_ENTER_WORLD, data=0, user=0) at ui-display.c:2617 game_event_dispatch(type=EVENT_ENTER_WORLD, data=0) at game-event.c:43 event_signal(type=EVENT_ENTER_WORLD) at game-event.c:142 start_game(new_game=true) at ui-game.c:420 play_game(new_game=true) at ui-game.c:440 Last edited by backwardsEric; March 30, 2021 at 23:47. Reason: be more specific about the source used |
![]() |
![]() |
![]() |
#12 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,725
Donated: $40
![]() |
To fix this problem, edit the make file version number and executable name.
|
![]() |
![]() |
![]() |
#13 |
Rookie
Join Date: Mar 2021
Posts: 21
![]() |
This is definitely the appropriate place to report Xygos bugs. This doesn't look Mac specific, and at first glance I thought that all extra windows could be affected - I don't normally play with them and so haven't really tested them. But I have been unable to reproduce it - and the flip side of not playing with extra windows is that I haven't meddled with them. So although sharing window positions etc. with V would be unintended behaviour it still seems unlikely that doing so would cause problems. It looks as if the window is trying to be displayed too early - when there is no level generated (the null cave pointer). Simply ignoring that case would probably be effective, but I would prefer to know why it happens and how to see it on Linux.
So, please could you post your .prf? The Linux equivalent is ~/.angband/Xygos/x11-settings.prf. I don't know where they are kept on MacOS. |
![]() |
![]() |
![]() |
#14 |
Rookie
Join Date: Mar 2021
Posts: 21
![]() |
Make file version number, name
While I did say that I didn't think that this was the cause of the segfault - it's still a bug, whether or not it is the same bug that caused that crash. If there's a duff version or exe name I would like to fix it. But at my first look there isn't - could you point me at the file/line you mean?
|
![]() |
![]() |
![]() |
#15 | |
Swordsman
Join Date: Aug 2019
Posts: 340
![]() |
Quote:
src/Makefile.osx in Xygos uses the same setting for BUNDLE_IDENTIFIER as Angband does (i.e. org.rephial.angband). That is why the Mac front-end preferences are shared. Changing that would keep them separate. |
|
![]() |
![]() |
![]() |
#16 |
Rookie
Join Date: Mar 2021
Posts: 21
![]() |
Mac build
I've been unable to reproduce the crash on Linux, but I do now have a Mac build up that uses its own BUNDLE_IDENTIFIER and so shouldn't share any prefs with Angband. I'd appreciate it if someone could give that a try and see if it avoids the crash.
|
![]() |
![]() |
![]() |
#17 | |
Swordsman
Join Date: Aug 2019
Posts: 340
![]() |
Quote:
Code:
defaults delete xygos.rephial.org Without any prior defaults, the Mac front end is always setting up default sizes and placements for Term-1 to Term-5. That behavior is in Angband as well. Those terms will open immediately after going from the splash screen to the birth process. Closing them all before leaving the birth process does not prevent the crash. Changing line 350 of src/ui-mon-list.c to Code:
if (height < 1 || width < 1 || !cave) To reproduce the crash on Linux, this worked for me (using Debian Buster; compiled from the latest source after configuring Code:
./configure --with-no-install
|
|
![]() |
![]() |
![]() |
#18 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,463
Donated: $60
![]() ![]() |
Weird. Why doesn't Angband crash there, then?
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#19 |
Swordsman
Join Date: Aug 2019
Posts: 340
![]() |
From what I'm seeing, Angband does not have PR_MONLIST included in player->upkeep->redraw on that first call to redraw_stuff() while Xygos does. For Xygos, that flag is already set when event_signal(EVENT_ENTER_WORLD) is called. I didn't track down when it was set prior to that.
|
![]() |
![]() |
![]() |
Tags |
xygos |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tales of Maj'Eyal 1.3.2 aka "Stunt Saver" is released! | DarkGod | ToME | 0 | November 29, 2015 21:40 |
Tales of Maj'Eyal 1.1.5 aka "Stoke Me a Clipper" is released! | DarkGod | ToME | 0 | January 10, 2014 10:37 |
Tales of Maj'Eyal 1.1.4 aka "Balance of Power" is released! | DarkGod | ToME | 0 | January 9, 2014 01:16 |
Tales of Maj'Eyal 1.1.3 aka "Oh Christmas Troy!" is released | DarkGod | ToME | 0 | December 24, 2013 17:54 |
Tales of Maj'Eyal 1.1.2 aka "Starburst" is released! | DarkGod | ToME | 0 | December 23, 2013 01:26 |