チケット #47496

city name truncated

登録: 2023-03-01 00:40 最終更新: 2023-03-03 13:42

報告者:
(匿名)
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
1

詳細

I've started a game with the debian package: apt show freeciv-client-qt Package: freeciv-client-qt Version: 3.0.6-1

This (correctly) had the following City names: $ xzgrep -i feldki ~/.freeciv/saves/freeciv-T0260-Y01768-auto.sav.xz 218,457,425,0,3,1,1,0,0,64,0,0,FALSE,-1,0,0,0,136,FALSE,FALSE,207,"Feldkirchen in Kärnten","Building","Supermarket","Building","Supermarket",64,0,0,1,"PostModern",5,"0000000001000000000000000000000000000000000000000000000000000000000000000",5,"Building","Library","Building","Courthouse","Building","Marketplace","Building","Granary","Building","Coinage","","","","","","","","","","",FALSE,FALSE,FALSE,0,0,1,0,0,FALSE,3 218,460,208,0,6,2,0,0,11,14,65,0,FALSE,203,0,0,0,73,FALSE,FALSE,214,"Feldkirch","Building","Granary","Building","Granary",14,0,0,0,"PostModern",5,"0000000001001000010000000000000000000000000000000000000000000000000000000",4,"UnitType","Settlers","Building","Aqueduct","Building","Marketplace","Building","Coinage","","","","","","","","","","","","",FALSE,FALSE,FALSE,0,0,1,0,0,FALSE,6

Then i built the 'main' branch, HEAD == 1f246a4e3dbab8b13a7ba5ba9511ce25ae34138b: $ ./configure --prefix=/opt/x86_64/freeciv --enable-client=qt,gtk3.22 --with-qtver=qt5 qt6 client segfaults for me when instantiating QApplication, but that's for another bug Then, with the QT client, i loaded the game, played, saved.

But now the city names appear to have been truncated: $ zstdgrep -i feldki ~/.freeciv/saves/freeciv-T0293-Y01834-auto.sav.zst 218,457,425,0,5,2,1,0,0,23,0,0,FALSE,FALSE,-1,0,0,0,136,FALSE,FALSE,275,"Feldkir","Building","Library",1,"Building","Library",23,0,0,2,"PostModern",5,"0000000001000000000000000000000000000001000000000000000000000000000000000",4,"Building","Courthouse","Building","Marketplace","Building","Granary","Building","Coinage","","","","","","","","","","",FALSE,FALSE,FALSE,0,0,1,0,0,FALSE,0,0,1,0,0,FALSE,5,0,FALSE,FALSE,"-","-","-",-1,-1,-1,FALSE,0,0,0,0,0,0,0,0,0,0,0,0,FALSE,FALSE,FALSE,FALSE,0 218,460,208,0,6,2,0,0,26,0,98,0,FALSE,FALSE,280,0,0,0,73,FALSE,FALSE,286,"Feldkir","UnitType","Settlers",0,"UnitType","Settlers",0,0,0,0,"PostModern",5,"0000000001001010010000000000000000000000000000000000000000000000000000000",3,"Building","Aqueduct","Building","Marketplace","Building","Coinage","","","","","","","","","","","","",FALSE,FALSE,FALSE,0,0,1,0,0,FALSE,0,0,1,0,0,FALSE,6,0,FALSE,FALSE,"-","-","-",-1,-1,-1,FALSE,0,0,0,0,0,0,0,0,0,0,0,0,FALSE,FALSE,FALSE,FALSE,0

yikes!

チケットの履歴 (10 件中 3 件表示)

2023-03-01 00:40 更新者: None
  • 新しいチケット "city name truncated" が作成されました
2023-03-01 02:38 更新者: cazfi
コメント

Can you attach those savegames?

2023-03-01 03:14 更新者: None
コメント

Reply To cazfi

Can you attach those savegames?

old save, created by the debian qt-client-3.0: https://ufile.io/wmf5j83s

PS: i do not see how to attach a file here, is that correct?

thanks!

2023-03-01 03:18 更新者: None
コメント

new savegame, loaded from the old one using the main branch as of today, with the qt5 client:

https://ufile.io/sugpyv8b

2023-03-01 10:27 更新者: cazfi
コメント

Reply To (Anonymous)

PS: i do not see how to attach a file here, is that correct?

At least logged in users have the "Add New attachment" button, but I'm not sure about anonymous users.

2023-03-01 10:30 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.1.0-beta1 (完了済み) に更新されました
  • コンポーネント(未割り当て) から Server に更新されました
コメント

Fix attached.

2023-03-01 22:05 更新者: the-b
コメント

oh ok. Many thanks!

PS: free(NULL) is perfectly valid in C. Let me suggest to remove these superfluous if statements: #47504

cheers!

2023-03-02 05:36 更新者: the-b
コメント

Reply To cazfi

Reply To (Anonymous)

PS: i do not see how to attach a file here, is that correct?

At least logged in users have the "Add New attachment" button, but I'm not sure about anonymous users.

Right, that's it. anonymous is not allowed to attach files, which makes sense in practise.

2023-03-03 13:42 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする