April 29, 2026
9:11 a.m.
On Wed Apr 29 08:31:28 2026 +0000, Alexandre Julliard wrote:
You should be using __wine_dbg_get_channel_flags in the macro instead. Unfortunately, if __wine_dbch_android is not initialized, calling __wine_dbg_get_channel_flags() may trigger init_options(), which requires a valid Wine TEB and will crash otherwise. So it’s not safe to call it inside the LOG macro, which may run in pure Java contexts without a Wine TEB (as required on newer Android setups). That’s why it’s initialized explicitly at a safe point. In future commits I will pass `__wine_dbch_android` to Java process as is so it will be fine.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10710#note_138152