April 29, 2026
9:17 a.m.
On Wed Apr 29 09:11:16 2026 +0000, Twaik Yont wrote:
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. init_options() doesn't require a TEB.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10710#note_138154