Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old February 2, 2016, 13:01   #141
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,899
PowerWyrm is on a distinguished road
I was looking to reproduce the problem described in #1913, so I changed from ASCII to Shockbolt. After a few minutes of meleeing stuff without experiencing any problem, I switched back to ASCII and closed the window. Got the message "Saving game (done). Press Return (or Escape)." I pressed ESC and nothing happened. I clicked on the main window and got the Windows "program creased to function" message. I tried again to reproduce the problem and didn't manage to do so unfortunately...
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old February 2, 2016, 16:21   #142
kandrc
Swordsman
 
Join Date: Dec 2007
Posts: 299
kandrc is on a distinguished road
Quote:
Originally Posted by Nick View Post
Stack dumps would be good - I haven't been able to reproduce this.

Edit: The list of outstanding bugs is now here - this doesn't include those where I have asked for more info, or the monster appearing twice in the list thing because an in-development change may have fixed that.
Stack dump follows. Version is top of tree a couple of weeks ago, 4.0.3-27-g083e1d4. If you'd like me to check some other state, try another version, etc., please let me know.

This is a brand new character, loaded Khamul in town. Khamul is the only monster in sight. Tried to get a monster list.

Code:
jeremy@eventhorizon:~/angband$ LC_ALL=UTF-8.en_US gdb ./src/angband
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jeremy/angband/src/angband...done.
(gdb) run
Starting program: /home/jeremy/angband/./src/angband 
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (UTF-8.en_US)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
angband: z-textblock.c:115: textblock_vappend_c: Assertion `new_length >= 0' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff6d7f979 in raise () from /lib64/libc.so.6
(gdb) by
Undefined command: "by".  Try "help".
(gdb) bt
#0  0x00007ffff6d7f979 in raise () from /lib64/libc.so.6
#1  0x00007ffff6d81088 in abort () from /lib64/libc.so.6
#2  0x00007ffff6d78966 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff6d78a12 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000004dbb66 in textblock_vappend_c (tb=0xa28d98, attr=17 '\021', 
    fmt=0x507225 "%-*s%s\n", vp=0x7fffffffd748) at z-textblock.c:115
#5  0x00000000004dbe8c in textblock_append_c (tb=0xa28d98, attr=17 '\021', 
    fmt=0x507225 "%-*s%s\n") at z-textblock.c:186
#6  0x00000000004b58c6 in monster_list_format_section (list=0xa6de38, 
    tb=0xa28d98, section=MONSTER_LIST_SECTION_LOS, lines_to_display=1, 
    max_width=55, prefix=0x507281 "You can see", show_others=false, 
    max_width_result=0x7fffffffda20) at ui-mon-list.c:156
#7  0x00000000004b5bb4 in monster_list_format_textblock (list=0xa6de38, 
    tb=0xa28d98, max_lines=2, max_width=55, max_height_result=0x0, 
    max_width_result=0x0) at ui-mon-list.c:288
#8  0x00000000004b5e87 in monster_list_show_interactive (height=81, width=214)
    at ui-mon-list.c:409
#9  0x00000000004b11f9 in do_cmd_monlist () at ui-knowledge.c:3202
#10 0x00000000004a6de2 in textui_process_command () at ui-game.c:314
#11 0x00000000004a6e2e in textui_get_cmd (context=CMD_GAME) at ui-game.c:326
#12 0x00000000004a70e2 in play_game (new_game=false) at ui-game.c:429
#13 0x00000000004de5a2 in main (argc=1, argv=0x7fffffffdc78) at main.c:556
(gdb) up
#1  0x00007ffff6d81088 in abort () from /lib64/libc.so.6
(gdb) 
#2  0x00007ffff6d78966 in __assert_fail_base () from /lib64/libc.so.6
(gdb) 
#3  0x00007ffff6d78a12 in __assert_fail () from /lib64/libc.so.6
(gdb) 
#4  0x00000000004dbb66 in textblock_vappend_c (tb=0xa28d98, attr=17 '\021', 
    fmt=0x507225 "%-*s%s\n", vp=0x7fffffffd748) at z-textblock.c:115
115             assert(new_length >= 0); /* If this fails, the string was badly formed */
(gdb) print new_length
$1 = -1
kandrc is offline   Reply With Quote
Old February 2, 2016, 21:42   #143
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,167
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Quote:
Originally Posted by kandrc View Post
Stack dump follows. Version is top of tree a couple of weeks ago, 4.0.3-27-g083e1d4. If you'd like me to check some other state, try another version, etc., please let me know.

This is a brand new character, loaded Khamul in town. Khamul is the only monster in sight. Tried to get a monster list.
OK, this looks like it might be to do with your locale settings. You call gdb like this:

Code:
jeremy@eventhorizon:~/angband$ LC_ALL=UTF-8.en_US gdb ./src/angband
when you start angband it tells you

Code:
(gdb) run
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (UTF-8.en_US)
and the line with the failed assert that causes it to crash is

Code:
#4  0x00000000004dbb66 in textblock_vappend_c (tb=0xa28d98, attr=17 '\021', 
    fmt=0x507225 "%-*s%s\n", vp=0x7fffffffd748) at z-textblock.c:115
115             assert(new_length >= 0); /* If this fails, the string was badly formed */
so it's saying the string (presumably including 'Khamûl') is badly formed. That string has come from a call to mbstowcs, which is what translates utf-8 characters.

I don't fully understand locales, and I would have thought on the face of it that setting LC_ALL to UTF_8.en_US would be OK; mine is unset, though. And in fact, I can now mimic this behaviour by setting my LC_ALL as you do. So maybe just don't do that?
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old February 2, 2016, 22:39   #144
hjklyubn
Rookie
 
Join Date: Jan 2014
Posts: 19
hjklyubn is on a distinguished road
Quote:
Originally Posted by Nick View Post
I don't fully understand locales, and I would have thought on the face of it that setting LC_ALL to UTF_8.en_US would be OK; mine is unset, though. And in fact, I can now mimic this behaviour by setting my LC_ALL as you do. So maybe just don't do that?
The actual locale name is en_US.UTF-8, not UTF-8.en_US, at least on my Linux system.
hjklyubn is offline   Reply With Quote
Old February 3, 2016, 21:45   #145
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,167
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Quote:
Originally Posted by hjklyubn View Post
The actual locale name is en_US.UTF-8, not UTF-8.en_US, at least on my Linux system.
Told you I didn't know much

Well done - sure enough, running with
Code:
LC_ALL=en_US.UTF-8
works just fine.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

Last edited by Nick; February 4, 2016 at 12:46. Reason: Punctuation
Nick is offline   Reply With Quote
Old February 4, 2016, 11:44   #146
mzhr
Rookie
 
Join Date: Feb 2016
Location: Melbourne, Australia
Posts: 1
mzhr is on a distinguished road
There's a spelling mistake inside the lib/gamedata/hints.txt file where
'invincible' is spelled wrong.

On line 92 it says:
Quote:
H:You're never invicible. Never forget that.
mzhr is offline   Reply With Quote
Old February 4, 2016, 11:47   #147
Timo Pietilä
Prophet
 
Join Date: Apr 2007
Location: Climbing up from hole I just dug.
Posts: 4,096
Timo Pietilä is on a distinguished road
Quote:
Originally Posted by mzhr View Post
There's a spelling mistake inside the lib/gamedata/hints.txt file where
'invincible' is spelled wrong.

On line 92 it says:
Code:
H:You're never invicible. Never forget that.
Invincible or invisible. Both could work on that.
Timo Pietilä is offline   Reply With Quote
Old February 4, 2016, 21:20   #148
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,589
Donated: $40
Pete Mack is on a distinguished road
Well, it's true you're not invicible either.
Pete Mack is offline   Reply With Quote
Old February 6, 2016, 04:25   #149
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,167
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Quote:
Originally Posted by spara View Post
Now that I'm playing... This is a minor cosmetic thing and probably has been reported already, but anyway, I'm browsing my spellbook with descriptions on and move from one spell to another. If the previous spell's description uses two more lines than the current one, part of the previous description is left on screen. And still running the SDL port on Linux.



I'm unable to reproduce this, in the SDL port, either with tiles or ascii, and with various sized windows.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old February 6, 2016, 05:01   #150
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,167
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Updated builds for bugfixed 4.0.4 - Windows and OS X.

Bugs fixed, changes made:
  • Bad friends for master mystics
  • Some OS X cleanup
  • Monster lore from probing is more complete
  • Fix to store names
  • Monster list updates after detection
  • Windows sound fixed
  • Flicker when player moves with center_player set removed
  • No more duplicate labels in death object examine menus, plus quiver gets shown in death info
  • Bashing and jamming removed from help, plus invicible->invincible

Bugs not fixed, changes not made:
  • Monster tiles sometimes vanishing under the cursor
  • Screen redraw delay so it seems player appears twice
  • Map window update issues
  • OS X term windows opening with Command-1, etc - I think this one is beyond my capabilities, and I will have to wait for someone who knows something
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.0.3 bugs Nick Vanilla 86 December 6, 2015 19:16
4.0.2 Bugs Ingwe Ingweron Vanilla 205 November 13, 2015 03:31
4.0.1 Bugs Elsairon Vanilla 116 September 10, 2015 08:45
Bugs with 3.5 donalde Vanilla 10 February 24, 2014 18:28
Bugs Adley Development 2 October 10, 2010 22:11


All times are GMT +1. The time now is 10:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.