Tíquete #47540

Quitidle.sav is broken when save is done in thread

: 2023-03-09 02:42 Última Atualização: 2023-03-27 07:05

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
5

Details

It was created by Freeciv configure 3.0.6+, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --enable-gitrev --enable-debug=yes --enable-gprof --enable-client=gtk3.22,qt --with-qtver=qt5 --enable-ai-static=tex,classic

I triple checked the automatic save done when quitting the game with CTRL-Q :

  • when server option save in a thread is not activated, everything is ok
  • with save in a separate thread, the quitidle.sav is broken, only half size
alain@servical:~/.freeciv/saves$ ll -tr|tail
-rw-rw-r-- 1 alain alain 129792 mars   8 16:25 freeciv-T0447-Y01975-quitidle.sav.xz  <--- normal save
-rw-rw-r-- 1 alain alain 129812 mars   8 16:34 freeciv-T0448-Y01976-auto.sav.xz
-rw-rw-r-- 1 alain alain 128516 mars   8 18:04 freeciv-T0449-Y01977-auto.sav.xz
-rw-rw-r-- 1 alain alain 129164 mars   8 18:10 freeciv-T0449-Y01977-manual.sav.xz
-rw-rw-r-- 1 alain alain  61470 mars   8 18:10 freeciv-T0449-Y01977-quitidle.sav.xz    <----  threaded save
-rw-rw-r-- 1 alain alain 128900 mars   8 18:12 freeciv-T0450-Y01978-auto.sav.xz
-rw-rw-r-- 1 alain alain 129500 mars   8 18:20 freeciv-T0450-Y01978-manual.sav.xz
-rw-rw-r-- 1 alain alain  61472 mars   8 18:20 freeciv-T0450-Y01978-quitidle.sav.xz   <---  threaded save
-rw-rw-r-- 1 alain alain 129408 mars   8 18:23 freeciv-T0451-Y01979-auto.sav.xz
-rw-rw-r-- 1 alain alain 129880 mars   8 18:30 freeciv-T0451-Y01979-manual.sav.xz

100% reproducible here.

The time spent for save is very small, it may be enough to just remove this option.

Ticket History (3/9 Histories)

2023-03-09 02:42 Updated by: alain_bkr
  • New Ticket "Quitidle.sav is broken when save is done in thread" created
2023-03-10 15:59 Updated by: cazfi
  • Marco Update from (Nenhum) to 3.0.7 (fechado)
  • Componente Update from (Nenhum) to Server
2023-03-22 03:43 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
2023-03-27 07:05 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login