[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Update of bug #17373 (project freeciv): Planned Release: = 2.3.3,2.4.0,2.5.0 ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Update of bug #17373 (project freeciv): Status: Ready For Test = Fixed Assigned to:None = cazfi Open/Closed:Open = Closed ___ Follow-up Comment #10: Noticed another nasty aspect of that fc_assert_ret() we had here. It tried to return with value -1 from the function, but return type of the function is unsigned (size_t). So it was not returning value indicating error but rather big value. ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Update of bug #17373 (project freeciv): Category:None = general Status:None = Ready For Test ___ Follow-up Comment #6: (which is looking for Unicode Byte Order Marks, for no reason I understand) Well, it's not prepared for any extra bytes, such as BOM. It assumes that each int represent one character when it counts them. It rather asserts than tries to adjust when there's BOM. This assert is *not* for something that is assumed never to happen, but for something we don't bother to handle! Encoding conversion is free to add BOM if it wants, and from this bug report it seems obvious that at least on one platform it does. Attached untested patch should make it handle BOM correctly (just skip wihtout counting) I think it assumes that sizeof(int)==4*sizeof(char) As it converts to UCS-4, it assumes that sizeof(int) == 32 bits. I didn't do anything to this yet. (file #15461) ___ Additional Item Attachment: File name: BOM.diff Size:0 KB ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Follow-up Comment #2, bug #17373 (project freeciv): Latest version, from 30 minutes before my first post. I was doing nothing, just started the game. Got lots of these errors actually. This is just a warning, not a fault, no dump. I guess i can give you shell access on this computer. It's a NetBSD 5.0.2. ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Follow-up Comment #3, bug #17373 (project freeciv): I was doing nothing, just started the game. Got lots of these errors actually. Hm. That could be caused by booting the help texts, I suppose (which I changed in bug #17215). This is just a warning, not a fault, no dump. Sure; however, you can turn it into a fatal error and get a coredump by supplying the -F option when starting the client. Are playing Freeciv in a language other than English? ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Follow-up Comment #4, bug #17373 (project freeciv): Only english ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
Follow-up Comment #5, bug #17373 (project freeciv): Now I look into get_internal_string_length(), it seems pretty dodgy. I think it assumes that sizeof(int)==4*sizeof(char), and it will fail utterly if HAVE_ICONV is not defined. However, you'd have to be pretty unlucky for any of that to repeatably cause this particular assertion (which is looking for Unicode Byte Order Marks, for no reason I understand) to fail; so I'm not sure it's relevant. But on the off-chance: * What platform are you using? (Output of uname -a or similar) * Is it possible that you've compiled with --disable-nls or otherwise disables NLS? I think we're probably going to need that backtrace. ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17373] Assertion failed during single player game in trunk
URL: http://gna.org/bugs/?17373 Summary: Assertion failed during single player game in trunk Project: Freeciv Submitted by: akfaew Submitted on: Wed 22 Dec 2010 07:32:21 AM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: *BSD Planned Release: ___ Details: I have no idea what type of additional info to provide. This warning is in the gtk2 client. 1: in get_internal_string_length() [fciconv.c::377]: assertion '0xFEFF != text2[0] 0xFFFE!= text2[0]' failed. ___ Reply to this item at: http://gna.org/bugs/?17373 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev