From d55bea97258510d6c0876b29acc34827bc061f14 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Mon, 14 May 2018 10:26:20 +0100 Subject: [PATCH] logpanel: fix crash when appending lots of lines. Surround elm_code_file_line_append() with ecore_main_loop_begin/end. Fixes a crash when there are lots of errors to report. @fix --- src/bin/edi_logpanel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/edi_logpanel.c b/src/bin/edi_logpanel.c index e743ac0..19c579a 100644 --- a/src/bin/edi_logpanel.c +++ b/src/bin/edi_logpanel.c @@ -46,8 +46,11 @@ _edi_logpanel_print_cb(const Eina_Log_Domain *domain, Eina_Log_Level level, domain->domain_str, file, fnc, line); vsnprintf(buffer + printed, buffer_len - printed, fmt, args); + ecore_thread_main_loop_begin(); + elm_code_file_line_append(_elm_code->file, buffer, strlen(buffer), (level <= EINA_LOG_LEVEL_ERR) ? _EDI_LOG_ERROR : NULL); + ecore_thread_main_loop_end(); } static void