CefGlue.Demo.Winforms crashed with Check failed: linux_sandbox->IsSingleThreaded().

Issue #72 resolved
RKVS Raman created an issue

CefGlue.Demo.Winforms crashed with Check failed: linux_sandbox->IsSingleThreaded().

CefRuntime.ExecuteProcess() returns -1 Sandbox 0 OnBeforeCommandLineProcessing: - --lang=en-US --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug --remote-debugging-port=20480 AppendExtraCommandLineSwitches: /usr/bin/mono-sgen --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug Program == /usr/bin/mono-sgen Path:/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug/Xilium.CefGlue.Demo.WinForms.exe -> /usr/bin/mono /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug/Xilium.CefGlue.Demo.WinForms.exe --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug --cefglue=w OnBeforeCommandLineProcessing: zygote - --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.WinForms/bin/Debug --cefglue=w [0621/111811:VERBOSE1:zygote_main_linux.cc(462)] ZygoteMain: fork delegate is NULL [0621/111811:FATAL:zygote_main_linux.cc(438)] Check failed: linux_sandbox->IsSingleThreaded().

0 0x7f865e457dc5 base::debug::StackTrace::StackTrace()

1 0x7f865e4cd193 logging::LogMessage::~LogMessage()

2 0x7f865edc1948 content::EnterLayerOneSandbox()

3 0x7f865edc1c0b content::ZygoteMain()

4 0x7f866357342d content::RunZygote()

5 0x7f86635737ff content::RunNamedProcessTypeMain()

6 0x7f86635748ef content::ContentMainRunnerImpl::Run()

7 0x7f8663572ccb content::ContentMain()

8 0x7f865e271682 CefExecuteProcess()

9 0x7f865e195461 cef_execute_process

10 0x0000410d3467 <unknown>

Received signal 6

0 0x7f865e457dc5 base::debug::StackTrace::StackTrace()

1 0x7f865e4576d7 base::debug::(anonymous namespace)::StackDumpSignalHandler()

2 0x7f8670896340 <unknown>

3 0x7f86704f6f79 gsignal

4 0x7f86704fa388 abort

5 0x7f865e4549e7 base::debug::(anonymous namespace)::DebugBreak()

6 0x7f865e4549f3 base::debug::BreakDebugger()

7 0x7f865e4cd4e3 logging::LogMessage::~LogMessage()

8 0x7f865edc1948 content::EnterLayerOneSandbox()

9 0x7f865edc1c0b content::ZygoteMain()

10 0x7f866357342d content::RunZygote()

11 0x7f86635737ff content::RunNamedProcessTypeMain()

12 0x7f86635748ef content::ContentMainRunnerImpl::Run()

13 0x7f8663572ccb content::ContentMain()

14 0x7f865e271682 CefExecuteProcess()

15 0x7f865e195461 cef_execute_process

16 0x0000410d3467 <unknown>

r8: 00007f8653d9fbb8 r9: 0000000000000248 r10: 0000000000000008 r11: 0000000000000202 r12: 00000000029e5a30 r13: 00007fff6f375008 r14: 00000000029a5ac0 r15: 0000000000000000 di: 0000000000000001 si: 0000000000000001 bp: 00007fff6f3747f0 bx: 000000000000024e dx: 0000000000000006 ax: 0000000000000000 cx: ffffffffffffffff sp: 00007fff6f3746b8 ip: 00007f86704f6f79 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000

Comments (6)

  1. Dmitry Azaraev

    WinForms sample did not designed to be run on linux. PS: Probably multi threaded message loop enabled, but it is supported only on windows hosts.

  2. RKVS Raman reporter

    Tried with GtkSharp Example too. Same error.

    CefRuntime.ExecuteProcess() returns -1 Sandbox 0 OnBeforeCommandLineProcessing: - --lang=en-US --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --remote-debugging-port=20480 AppendExtraCommandLineSwitches: /usr/bin/mono-sgen --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug Program == /usr/bin/mono-sgen Path:/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe -> /usr/bin/mono /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --cefglue=w OnBeforeCommandLineProcessing: zygote - --type=zygote --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --cefglue=w [0621/135127:VERBOSE1:zygote_main_linux.cc(462)] ZygoteMain: fork delegate is NULL [0621/135127:FATAL:zygote_main_linux.cc(438)] Check failed: linux_sandbox->IsSingleThreaded().

    0 0x7faac62aadc5 base::debug::StackTrace::StackTrace()

    1 0x7faac6320193 logging::LogMessage::~LogMessage()

    2 0x7faac6c14948 content::EnterLayerOneSandbox()

    3 0x7faac6c14c0b content::ZygoteMain()

    4 0x7faacb3c642d content::RunZygote()

    5 0x7faacb3c67ff content::RunNamedProcessTypeMain()

    6 0x7faacb3c78ef content::ContentMainRunnerImpl::Run()

    7 0x7faacb3c5ccb content::ContentMain()

    8 0x7faac60c4682 CefExecuteProcess()

    9 0x7faac5fe8461 cef_execute_process

    10 0x000040227467 <unknown>

    Received signal 6

    0 0x7faac62aadc5 base::debug::StackTrace::StackTrace()

    1 0x7faac62aa6d7 base::debug::(anonymous namespace)::StackDumpSignalHandler()

    2 0x7faad7286340 <unknown>

    3 0x7faad6ee6f79 gsignal

    4 0x7faad6eea388 abort

    5 0x7faac62a79e7 base::debug::(anonymous namespace)::DebugBreak()

    6 0x7faac62a79f3 base::debug::BreakDebugger()

    7 0x7faac63204e3 logging::LogMessage::~LogMessage()

    8 0x7faac6c14948 content::EnterLayerOneSandbox()

    9 0x7faac6c14c0b content::ZygoteMain()

    10 0x7faacb3c642d content::RunZygote()

    11 0x7faacb3c67ff content::RunNamedProcessTypeMain()

    12 0x7faacb3c78ef content::ContentMainRunnerImpl::Run()

    13 0x7faacb3c5ccb content::ContentMain()

    14 0x7faac60c4682 CefExecuteProcess()

    15 0x7faac5fe8461 cef_execute_process

    16 0x000040227467 <unknown>

    r8: 00007faaba75abb8 r9: 0000000000000248 r10: 0000000000000008 r11: 0000000000000202 r12: 000000000207f510 r13: 00007fffe79d7118 r14: 00000000020819b0 r15: 0000000000000000 di: 0000000000000001 si: 0000000000000001 bp: 00007fffe79d6900 bx: 000000000000024e dx: 0000000000000006 ax: 0000000000000000 cx: ffffffffffffffff sp: 00007fffe79d67c8 ip: 00007faad6ee6f79 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000

  3. RKVS Raman reporter

    CefGlue Gtksharp works if compiled into a single exe using mkbundle.

    Even then it needs to run as --no-sandbox --single-process

  4. Dmitry Azaraev

    --no-sandbox only probably should be enough. --single-process - is not a way, it designed only for easy debugging.

  5. RKVS Raman reporter

    I get this error on console and program just hangs when using just --no-sandbox option

    Args:- Args:--no-sandbox CefRuntime.ExecuteProcess() returns -1 Getting in Sandbox 0 OnBeforeCommandLineProcessing: - --no-sandbox --lang=en-US --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --remote-debugging-port=20480 AppendExtraCommandLineSwitches: /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/GtkSharp --type=zygote --no-sandbox --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug Program == /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/GtkSharp Path:/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe -> /usr/bin/mono /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe --type=zygote --no-sandbox --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --cefglue=w Args:- Args:--type=zygote Args:--no-sandbox Args:--lang=en-US Args:--locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales Args:--log-file=cef.log Args:--log-severity=verbose Args:--resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug Args:--cefglue=w OnBeforeCommandLineProcessing: zygote - --type=zygote --no-sandbox --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --cefglue=w [0625/095733:VERBOSE1:gpu_info_collector_x11.cc(80)] NVCtrl extension does not exist. [0625/095734:VERBOSE1:zygote_main_linux.cc(462)] ZygoteMain: fork delegate is NULL [0625/095734:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 0x7fe42c0e8620: set chrome proxy config service to 0x13341fe11420 [0625/095734:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 0x7fe42c0e8620: Done pushing proxy to UpdateProxyConfig URL:http://www.mono-project.com/ REALIZED - RAW = 24677280, HANDLE = 24677280 [0625/095734:FATAL:zygote_main_linux.cc(438)] Check failed: linux_sandbox->IsSingleThreaded().

    0 0x7f894e457dc5 base::debug::StackTrace::StackTrace()

    1 0x7f894e4cd193 logging::LogMessage::~LogMessage()

    2 0x7f894edc1948 content::EnterLayerOneSandbox()

    3 0x7f894edc1c0b content::ZygoteMain()

    4 0x7f895357342d content::RunZygote()

    5 0x7f89535737ff content::RunNamedProcessTypeMain()

    6 0x7f89535748ef content::ContentMainRunnerImpl::Run()

    7 0x7f8953572ccb content::ContentMain()

    8 0x7f894e271682 CefExecuteProcess()

    9 0x7f894e195461 cef_execute_process

    10 0x000040b67eb7 <unknown>

    Received signal 6

    0 0x7f894e457dc5 [0625/095736:ERROR:render_widget_host_view_gtk.cc(1307)] Can't find XID for view id 0

    base::debug::StackTrace::StackTrace()

    1 0x7f894e4576d7 base::debug::(anonymous namespace)::StackDumpSignalHandler()

    2 0x7f8962387340 <unknown>

    3 0x7f8961fe7f79 gsignal

    4 0x7f8961feb388 abort

    5 0x7f894e4549e7 base::debug::(anonymous namespace)::DebugBreak()

    6 0x7f894e4549f3 base::debug::BreakDebugger()

    7 0x7f894e4cd4e3 AppendExtraCommandLineSwitches: /proc/self/exe --type=renderer --no-sandbox --lang=en-US --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug

    Program == /proc/self/exe Path:/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe -> /usr/bin/mono /home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/Xilium.CefGlue.Demo.GtkSharp.exe --type=renderer --no-sandbox --lang=en-US --lang=en-US --locales-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug/locales --log-file=cef.log --log-severity=verbose --resources-dir-path=/home/raman/RandD/xilium-xilium.cefglue-f9edd9354cfc/CefGlue.Demo.GtkSharp/bin/Debug --cefglue=w logging::LogMessage::~LogMessage()

    8 0x7f894edc1948 content::EnterLayerOneSandbox()

    9 0x7f894edc1c0b content::ZygoteMain()

    10 0x7f895357342d content::RunZygote()

    11 0x7f89535737ff content::RunNamedProcessTypeMain()

    12 0x7f89535748ef content::ContentMainRunnerImpl::Run()

    13 0x7f8953572ccb content::ContentMain()

    14 0x7f894e271682 CefExecuteProcess()

    15 0x7f894e195461 cef_execute_process

    16 0x000040b67eb7 <unknown>

    r8: 00007f895c179bb8 r9: 0000000000000248 r10: 0000000000000008 r11: 0000000000000202 r12: 0000000001c85bf0 r13: 00007fff33379858 r14: 0000000001c79060 r15: 0000000000000000 di: 000000000000118f si: 000000000000118f bp: 00007fff33379040 bx: 000000000000024e dx: 0000000000000006 ax: 0000000000000000 cx: ffffffffffffffff sp: 00007fff33378f08 ip: 00007f8961fe7f79 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000 [0625/095737:ERROR:child_process_launcher.cc(328)] Failed to launch child process

  6. Log in to comment