URL:
  <http://gna.org/bugs/?20055>

                 Summary: trunk, trident: assertion
't->sprites.roads[index].even[1 << i] != NULL' failed.
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Aug 11 21:46:01 2012
                Category: client-gtk-2.0
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Confirmed
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk r21783
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.5.0

    _______________________________________________________

Details:

Reported by freim (Hogne) on IRC, confirmed by me:

Starting trunk (r21783) client with trident tileset gives assertion errors:


1: in fill_basic_road_sprite_array() [tilespec.c::5618]: assertion
't->sprites.roads[index].even[1 << i] != NULL' failed.
1: in fill_basic_road_sprite_array() [tilespec.c::5618]: assertion
't->sprites.roads[index].even[1 << i] != NULL' failed.
1: in fill_basic_road_sprite_array() [tilespec.c::5618]: assertion
't->sprites.roads[index].even[1 << i] != NULL' failed.
1: in fill_basic_road_sprite_array() [tilespec.c::5618]: assertion
't->sprites.roads[index].even[1 << i] != NULL' failed.


Backtrace with -F (from me):


#0  0x00007f610cf197bb in raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
No locals.
#1  0x00000000005d80dc in fc_assert_fail (file=0x60d8c7 "tilespec.c", 
    function=0x60ecf0 "fill_basic_road_sprite_array", line=5618, 
    assertion=<value optimised out>, message=0x6492f2 "nologmsg:%s")
    at log.c:520
        level = LOG_FATAL
#2  0x0000000000496bc1 in fill_basic_road_sprite_array (t=0x29614f0, 
    sprs=0x7fff8c4ee920, proad=<value optimised out>) at tilespec.c:5618
        index = <value optimised out>
        i = <value optimised out>
        roadstyle = <value optimised out>
        __FUNCTION__ = "fill_basic_road_sprite_array"
#3  0x00000000004cca00 in create_road_pixbuf (proad=0x9ae8a0) at
editgui.c:714
        sprs = {{foggable = false, sprite = 0x3a71160, offset_x = 0, 
            offset_y = 0}, {foggable = false, sprite = 0x36ffd00, 
            offset_x = 0, offset_y = 0}, {foggable = false, 
            sprite = 0x36ffe00, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x3aa4dc0, offset_x = 0, offset_y = 0},

          {foggable = 108, sprite = 0xe40, offset_x = 56093984, offset_y = 0},

          {foggable = 128, sprite = 0xe30, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x0, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x0, offset_x = 118773820, 
            offset_y = 32609}, {foggable = false, sprite = 0x5ca7, 
            offset_x = 181079720, offset_y = 32609}, {foggable = 96, 
            sprite = 0x50, offset_x = 2, offset_y = 0}, {foggable = 32, 
            sprite = 0x2, offset_x = 80, offset_y = 0}, {foggable = 10, 
            sprite = 0x2a45a70, offset_x = 58391312, offset_y = 0}, {
            foggable = 112, sprite = 0x7f610acb0e40, offset_x = 58391312, 
            offset_y = 0}, {foggable = 16, sprite = 0x98, offset_x = 0, 
            offset_y = 0}, {foggable = 228, sprite = 0x7f610a9ae7de, 
            offset_x = 8, offset_y = 0}, {foggable = 112, sprite = 0x37eaf90,

            offset_x = 44325488, offset_y = 0}, {foggable = 16, 
            sprite = 0x2a45a70, offset_x = 58391312, offset_y = 0}, {
            foggable = false, sprite = 0x98, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x0, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x0, offset_x = 118778204, 
            offset_y = 32609}, {foggable = 112, sprite = 0x7fff8c4eeb68, 
            offset_x = 58546432, offset_y = 0}, {foggable = 158, 
            sprite = 0x2b47420, offset_x = 44534472, offset_y = 0}, {
            foggable = false, sprite = 0x2a79560, offset_x = 3, offset_y = 0},

          {foggable = false, sprite = 0x35a58f0, offset_x = -1940984688, 
            offset_y = 32767}, {foggable = 16, sprite = 0x7f610713ec04, 
            offset_x = 45136960, offset_y = 0}, {foggable = 240, 
            sprite = 0x8002, offset_x = 44537184, offset_y = 0}, {
            foggable = false, sprite = 0x35a58f0, offset_x = 3, offset_y = 0},

          {foggable = 144, sprite = 0x0, offset_x = 118752607, 
            offset_y = 32609}, {foggable = false, sprite = 0x2931a00, 
            offset_x = 32770, offset_y = 0}, {foggable = 64, sprite = 0x0, 
            offset_x = 118751436, offset_y = 32609}, {foggable = 2, 
            sprite = 0x7f6108f1cf86, offset_x = 56206464, offset_y = 0}, {
            foggable = 112, sprite = 0x8001, offset_x = 118814855, 
            offset_y = 32609}, {foggable = 64, sprite = 0x2a795f0, 
            offset_x = 45819968, offset_y = 0}, {foggable = false, 
            sprite = 0x7f6106b20788, offset_x = 118834415, offset_y = 32609},
{
            foggable = false, sprite = 0x2002ebe590, offset_x = 45834744, 
            offset_y = 0}, {foggable = 176, sprite = 0x7fff8c4eec90, 
            offset_x = 56252656, offset_y = 0}, {foggable = 3, sprite = 0x0, 
            offset_x = -1940984624, offset_y = 32767}, {foggable = 144, 
            sprite = 0x100000000000020, offset_x = 2628, offset_y = 0}, {
            foggable = 240, sprite = 0x2a79560, offset_x = 1, offset_y = 197},

          {foggable = false, sprite = 0x0, offset_x = -1940984704, 
            offset_y = 32767}, {foggable = false, sprite = 0x2ebe590, 
            offset_x = 197, offset_y = 0}, {foggable = 4, sprite = 0x4, 
            offset_x = 44534416, offset_y = 0}, {foggable = 197, 
            sprite = 0x35a58f8, offset_x = 112330688, offset_y = 32609}, {
            foggable = 240, sprite = 0x35a5938, offset_x = 49014160, 
            offset_y = 0}, {foggable = 128, sprite = 0x0, offset_x = 56252656,

            offset_y = 0}, {foggable = 17, sprite = 0x35a58f0, offset_x = 2, 
            offset_y = 0}, {foggable = 56, sprite = 0x2, 
            offset_x = -1940984192, offset_y = 32767}, {foggable = false, 
            sprite = 0x7f6106b207c0, offset_x = 118839991, offset_y = 32609},
{
            foggable = 128, sprite = 0x7f610716c1f0, offset_x = 56252704, 
            offset_y = 0}, {foggable = 112, sprite = 0x20359a640, 
            offset_x = 56252656, offset_y = 0}, {foggable = 198, 
            sprite = 0x48, offset_x = 56252680, offset_y = 0}, {foggable = 4,

            sprite = 0x2ebe590, offset_x = 5, offset_y = 0}, {foggable = 128,

            sprite = 0x5, offset_x = 2, offset_y = 0}, {foggable = 85, 
            sprite = 0x0, offset_x = 109719855, offset_y = 32609}, {
            foggable = false, sprite = 0x40, offset_x = -1940983680, 
            offset_y = 32767}, {foggable = false, sprite = 0x0, offset_x = 0,

            offset_y = 0}, {foggable = false, sprite = 0x0, offset_x = 0, 
            offset_y = 0}, {foggable = false, sprite = 0x2, 
            offset_x = 49014160, offset_y = 0}, {foggable = false, 
            sprite = 0x7f610a9b00d3, offset_x = 0, offset_y = 0}, {
            foggable = 144, sprite = 0x7fff8c4ef080, offset_x = 56206448, 
            offset_y = 0}, {foggable = 144, sprite = 0x0, offset_x = 49055792,

            offset_y = 0}, {foggable = 51, sprite = 0x3000000028, 
            offset_x = -1940983968, offset_y = 32767}, {foggable = 160, 
            sprite = 0x0, offset_x = 49055792, offset_y = 0}, {foggable = 222,

            sprite = 0x7fff8c4eef6c, offset_x = 56206448, offset_y = 0}, {
            foggable = 128, sprite = 0x7f610acb0e48, offset_x = 0, 
            offset_y = 0}, {foggable = 4, sprite = 0x0, offset_x = 181079616,

            offset_y = 32609}, {foggable = 128, sprite = 0x359a470, 
            offset_x = 49014160, offset_y = 0}, {foggable = false, 
            sprite = 0x359a470, offset_x = 109713169, offset_y = 32609}, {
            foggable = 144, sprite = 0x2ebe590, offset_x = -1940983680, 
            offset_y = 32767}, {foggable = 112, sprite = 0x2ebe590, 
            offset_x = 0, offset_y = 0}, {foggable = 48, 
            sprite = 0x7f6108e283f7, offset_x = 40, offset_y = 48}, {
            foggable = true, sprite = 0x7fff8c4ef080, offset_x = 0, 
            offset_y = 0}, {foggable = 160, sprite = 0x7f6108e28488, 
            offset_x = 48, offset_y = 48}, {foggable = 120, 
            sprite = 0x7fff8c4eefb0, offset_x = 181079624, offset_y = 32609},
{
            foggable = 30, sprite = 0x0, offset_x = 1, offset_y = 0}, {
            foggable = false, sprite = 0x2, offset_x = 10152112, 
            offset_y = 0}, {foggable = false, sprite = 0x2ebe590, 
            offset_x = 56206464, offset_y = 0}, {foggable = 64, sprite = 0x0,

            offset_x = 10152096, offset_y = 0}, {foggable = 144, sprite = 0x0,

            offset_x = 56206464, offset_y = 0}, {foggable = 17, sprite = 0x0,

            offset_x = -1940983680, offset_y = 32767}}
        count = <value optimised out>
        w = <value optimised out>
        h = <value optimised out>
        pixbuf = <value optimised out>
        canvas = {type = CANVAS_PIXBUF, v = {pixmap = 0x35a58f0, 
            pixcomm = 0x35a58f0, pixbuf = 0x35a58f0}}
#4  0x00000000004cd4d5 in editbar_reload_tileset () at editgui.c:894
        id = 0
        proad = <value optimised out>
        _i_ = 0
        iter = {stamp = 1349004719, user_data = 0x37ae010, user_data2 = 0x5, 
          user_data3 = 0x3547910}
        store = 0x2ebe590
        pixbuf = <value optimised out>
        sprite = <value optimised out>
#5  editgui_tileset_changed () at editgui.c:1885
No locals.
#6  0x00000000004599cf in set_client_state (newstate=C_S_RUNNING)
    at client_main.c:813
        oldstate = C_S_PREPARING
        pplayer = 0x3547910
        __FUNCTION__ = "set_client_state"
#7  0x0000000000482b93 in handle_start_phase (phase=0) at packhand.c:1137
        __FUNCTION__ = "handle_start_phase"
#8  0x0000000000489810 in client_handle_packet (type=<value optimised out>, 
    packet=0x0) at packhand_gen.c:233
No locals.
#9  0x0000000000459d9e in client_packet_input (packet=<value optimised out>, 
    type=126) at client_main.c:657
        __FUNCTION__ = "client_packet_input"
#10 0x0000000000460215 in input_from_server (fd=<value optimised out>)
    at clinet.c:421
        result = true
        packet = 0x0
        type = PACKET_START_PHASE
        nb = <value optimised out>
        __FUNCTION__ = "input_from_server"
#11 0x000000000044f140 in get_net_input (source=<value optimised out>, 
    condition=<value optimised out>, data=<value optimised out>)
    at gui_main.c:1882
No locals.
#12 0x00007f61068828c2 in g_main_context_dispatch () from
/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00007f6106886748 in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#14 0x00007f6106886c55 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#15 0x00007f6108e29bc7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#16 0x0000000000452649 in ui_main (argc=1, argv=0x7fff8c4ef778)
    at gui_main.c:1673
        home = <value optimised out>
        sig = <value optimised out>
        __FUNCTION__ = "ui_main"
#17 0x000000000045a2a3 in client_main (argc=<value optimised out>, 
    argv=0x7fff8c4ef778) at client_main.c:592
        i = 4
        loglevel = LOG_NORMAL
        ui_options = <value optimised out>
        ui_separator = 160
        option = <value optimised out>
        user_tileset = true
        fatal_assertions = 6
        __FUNCTION__ = "client_main"
#18 0x00007f610a950c4d in __libc_start_main (main=<value optimised out>, 
    argc=<value optimised out>, ubp_av=<value optimised out>, 
    init=<value optimised out>, fini=<value optimised out>, 
    rtld_fini=<value optimised out>, stack_end=0x7fff8c4ef768)
    at libc-start.c:226
        result = <value optimised out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1515107368638571468, 
                4515776, 140735547373424, 0, 0, -1514996721467825204, 
                -1457852132012629044}, mask_was_saved = 0}}, priv = {pad = {
              0x0, 0x0, 0x5f7800, 0x7fff8c4ef778}, data = {prev = 0x0, 
              cleanup = 0x0, canceltype = 6256640}}}
        not_first_call = <value optimised out>
#19 0x000000000044e7e9 in _start ()
No symbol table info available.


(Discovered because he was running into similar assertions with his own new
tileset he's developing.)




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20055>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to