チケット #42262

In pixman_region32_init_rec Invalid rectangle passed messages

登録: 2021-05-14 07:20 最終更新: 2023-04-12 00:31

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

詳細

The following error messages appears on the console during a Freeciv S2_6 game:

*** BUG ***
In void pixman_region32_init_rect(region_type_t *, int, int, unsigned int, unsigned int): Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

I saw 10 copies of this message during a test game of about 50(?) turns, lasting 20(?) minutes.

Freeciv version: S2_6 branch, commit 9cd08cd4cbe3dc201703e3609d42723f69065cca .
Client: freeciv-gtk3.22, "Freeciv version 2.6.4+ gui-gtk-3.22", on macOS 10.13.6 High Sierra
Game: local server, Civ2Civ3 rules, AI level Normal, Hexagonal tiles, no North-South wrapping, otherwise default settings.

From a little bit of web searching, I suspect that _pixman_log_error might be a GTK3 name. I do not find that name in a search of the S2_6 branch source code.

Sorry, this not a well-isolated bug situation. I just want to get a placeholder into the bug list, for future refinement and isolation.

Expected behaviour:

Freeciv code never passes an invalid rectangle to void pixman_region32_init_rect(region_type_t *, int, int, unsigned int, unsigned int). No messages like this are printed to the console during games.

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

2021-05-14 07:20 更新者: jdlh
  • 新しいチケット "In pixman_region32_init_rec Invalid rectangle passed messages" が作成されました
2021-05-14 08:21 更新者: jdlh
  • 詳細が更新されました
2021-05-15 03:41 更新者: alain_bkr
コメント

I have also this message on Linux (ubuntu 20.04) , with 3.0.beta1

2021-06-25 11:45 更新者: cazfi
2021-09-11 04:42 更新者: cazfi
2022-07-19 15:48 更新者: cazfi
コメント

As pixman is not part of gnome (nor otherwise glib user), even #44995 won't help in debugging this. Likely requires building quite a bunch of freeciv dependency libraries yourself.

2023-01-07 07:19 更新者: cazfi
コメント

Reply To cazfi

As pixman is not part of gnome (nor otherwise glib user), even #44995 won't help in debugging this. Likely requires building quite a bunch of freeciv dependency libraries yourself.

Let's add this to things that might get done during 3.0.7 cycle.

2023-03-27 13:34 更新者: cazfi
コメント

Built just pixman, and it was enough to get this tail of backtrace (from S3_0 + several local patches):

---

(gdb) bt
#0 _pixman_log_error
(function=function@entry=0x7ffff33e8e50 <__PRETTY_FUNCTION__.11> "pixman_region32_init_rect", message=message@entry=0x7ffff33e8b37 "Invalid rectangle passed")
at ../../../src/pixman-0.42.2/pixman/pixman-utils.c:320
#1 0x00007ffff33b28a0 in pixman_region32_init_rect
(region=0x555557914668, x=<optimized out>, y=<optimized out>, width=<optimized out>, height=<optimized out>) at ../../../src/pixman-0.42.2/pixman/pixman-region.c:389
#2 0x00007ffff6dca91f in cairo_region_create_rectangle () at /lib/x86_64-linux-gnu/libcairo.so.2
#3 0x00007ffff6f49ffe in () at /lib/x86_64-linux-gnu/libgdk-3.so.0
#4 0x0000555555655ff9 in dirty_rect
(canvas_x=canvas_x@entry=434, canvas_y=canvas_y@entry=867, pixel_width=pixel_width@entry=126, pixel_height=pixel_height@entry=-35) at ../../../src/client/gui-gtk-3.22/mapview.c:437
#5 0x00005555555e629b in update_map_canvas (canvas_x=434, canvas_y=867, width=126, height=-35)
at ../../src/client/mapview_common.c:1782
#6 0x00005555555e7570 in movement_animation (time_gone=<optimized out>, anim=0x55555718be10)
at ../../src/client/mapview_common.c:218
#7 update_animation () at ../../src/client/mapview_common.c:420
#8 0x0000555555655f00 in map_canvas_draw (w=<optimized out>, cr=0x555555e3a110, data=<optimized out>)
at ../../../src/client/gui-gtk-3.22/mapview.c:407

2023-03-27 14:11 更新者: cazfi
コメント

Split bug about Battle Animations size -> #47705 - That seems to explain only small percentage of these warning messages, keep this ticket for the majority of them.

2023-03-27 14:37 更新者: cazfi
2023-03-31 14:27 更新者: cazfi
コメント

See also #47679 (likely duplicate)

2023-04-08 00:53 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
コメント

Patch for all branches, including S2_6.

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

添付ファイルリスト

編集

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