Ticket #47787

1: in get_tech_sprite() [../../client/tilespec.c::6489]: assertion '0 <= tech && tech < advance_count()' failed.

Open Date: 2023-04-07 21:34 Last Update: 2023-09-03 12:41

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

3.1 , qt client configured with -qtver=qt5 ( --prefix=/Big/gcc11/FC31/ --program-transform-name=s:freeciv:FC31gcc11:g )

1: in get_tech_sprite() [../../client/tilespec.c::6489]: assertion '0 <= tech && tech < advance_count()' failed.
3: Backtrace:
3:     0: /Big/gcc11/FC31/bin/FC31gcc11-qt(backtrace_print+0x44) [0x562e88143784]
3:     1: /Big/gcc11/FC31/bin/FC31gcc11-qt(do_log+0x124) [0x562e88149f44]
3:     2: /Big/gcc11/FC31/bin/FC31gcc11-qt(fc_assert_fail+0xb8) [0x562e8814a1a8]
3:     3: /Big/gcc11/FC31/bin/FC31gcc11-qt(get_tech_sprite+0x6b) [0x562e87ec957b]
3:     4: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN12progress_bar10set_pixmapEi+0x52) [0x562e87edc6f2]
3:     5: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN14science_report13update_reportEv+0x3b6) [0x562e87fa7006]
3:     6: /Big/gcc11/FC31/bin/FC31gcc11-qt(real_science_report_dialog_update+0x19d) [0x562e87fa82cd]
3:     7: /Big/gcc11/FC31/bin/FC31gcc11-qt(+0x14866a) [0x562e87ed066a]
3:     8: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN7mr_idle6idlingEv+0x74) [0x562e87f4bb94]
3:     9: /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f1793) [0x7fcd228f1793]
3:    10: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN6QTimer7timeoutENS_14QPrivateSignalE+0x3e) [0x7fcd228f57fe]
3:    11: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x1cf) [0x7fcd228e733f]
3:    12: /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x83) [0x7fcd21f6c713]
3:    13: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x13a) [0x7fcd228b9e3a]
3:    14: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN14QTimerInfoList14activateTimersEv+0x3db) [0x7fcd229123eb]
3:    15: /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x312d34) [0x7fcd22912d34]
3:    16: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x26b) [0x7fcd1ea91d3b]
3:    17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xaa6c8) [0x7fcd1eae66c8]
3:    18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7fcd1ea8f3e3]
3:    19: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x68) [0x7fcd229130b8]
3:    20: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x12b) [0x7fcd228b875b]
3:    21: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x94) [0x7fcd228c0cf4]
3:    22: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN9fc_client7fc_mainEP12QApplication+0x1be) [0x562e87f1ddbe]
3:    23: /Big/gcc11/FC31/bin/FC31gcc11-qt(_Z11qtg_ui_mainiPPc+0x1e3) [0x562e87e625f3]
3:    24: /Big/gcc11/FC31/bin/FC31gcc11-qt(client_main+0xe41) [0x562e87e65511]
3:    25: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fcd21629d90]
3:    26: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fcd21629e40]
3:    27: /Big/gcc11/FC31/bin/FC31gcc11-qt(_start+0x25) [0x562e87e61165]
1: SVP, rapportez ce bogue à https://osdn.net/projects/freeciv/ticket/
3: Backtrace:
3:     0: /Big/gcc11/FC31/bin/FC31gcc11-qt(backtrace_print+0x44) [0x562e88143784]
3:     1: /Big/gcc11/FC31/bin/FC31gcc11-qt(do_log+0x124) [0x562e88149f44]
3:     2: /Big/gcc11/FC31/bin/FC31gcc11-qt(fc_assert_fail+0x19b) [0x562e8814a28b]
3:     3: /Big/gcc11/FC31/bin/FC31gcc11-qt(get_tech_sprite+0x6b) [0x562e87ec957b]
3:     4: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN12progress_bar10set_pixmapEi+0x52) [0x562e87edc6f2]
3:     5: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN14science_report13update_reportEv+0x3b6) [0x562e87fa7006]
3:     6: /Big/gcc11/FC31/bin/FC31gcc11-qt(real_science_report_dialog_update+0x19d) [0x562e87fa82cd]
3:     7: /Big/gcc11/FC31/bin/FC31gcc11-qt(+0x14866a) [0x562e87ed066a]
3:     8: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN7mr_idle6idlingEv+0x74) [0x562e87f4bb94]
3:     9: /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f1793) [0x7fcd228f1793]
3:    10: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN6QTimer7timeoutENS_14QPrivateSignalE+0x3e) [0x7fcd228f57fe]
3:    11: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x1cf) [0x7fcd228e733f]
3:    12: /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x83) [0x7fcd21f6c713]
3:    13: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x13a) [0x7fcd228b9e3a]
3:    14: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN14QTimerInfoList14activateTimersEv+0x3db) [0x7fcd229123eb]
3:    15: /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x312d34) [0x7fcd22912d34]
3:    16: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x26b) [0x7fcd1ea91d3b]
3:    17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xaa6c8) [0x7fcd1eae66c8]
3:    18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7fcd1ea8f3e3]
3:    19: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x68) [0x7fcd229130b8]
3:    20: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x12b) [0x7fcd228b875b]
3:    21: /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x94) [0x7fcd228c0cf4]
3:    22: /Big/gcc11/FC31/bin/FC31gcc11-qt(_ZN9fc_client7fc_mainEP12QApplication+0x1be) [0x562e87f1ddbe]
3:    23: /Big/gcc11/FC31/bin/FC31gcc11-qt(_Z11qtg_ui_mainiPPc+0x1e3) [0x562e87e625f3]
3:    24: /Big/gcc11/FC31/bin/FC31gcc11-qt(client_main+0xe41) [0x562e87e65511]
3:    25: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fcd21629d90]
3:    26: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7fcd21629e40]
3:    27: /Big/gcc11/FC31/bin/FC31gcc11-qt(_start+0x25) [0x562e87e61165]

Ticket History (3/7 Histories)

2023-04-07 21:34 Updated by: alain_bkr
  • New Ticket "1: in get_tech_sprite() [../../client/tilespec.c::6489]: assertion '0 <= tech && tech < advance_count()' failed." created
2023-04-07 21:44 Updated by: cazfi
Comment

Maybe another problem with Future Tech?

2023-04-07 22:19 Updated by: cazfi
Comment

Given the idle timer on the backtrace, could also be inconsistent state with unfortunate timing.

2023-08-30 13:03 Updated by: cazfi
Comment

Reply To cazfi

Maybe another problem with Future Tech?

progress_bar::set_pixmap() does not filter Future Techs out before trying to get the sprite, so looks like it's this.

2023-08-30 13:08 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-09-03 12:41 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login