Note: Advice in this article will only work for JxBrowser 6. See the corresponding article for JxBrowser 7 here.(注意:本文中的建议仅适用于JxBrowser6,JxBrowser7相应文章请点击这里。)


By default, on Linux platforms nothing happens when the Chromium engine, used by JxBrowser, has been unexpectedly crashed. To collect information about the native crash and determine root cause of the issue, we need to get a core dump file. The core dump file is generated by operating system. By default, core dump file generation is disabled. To enable code dump file generation you need to configure your Linux environment using specific steps.(默认情况下,在Linux平台上,当JxBrowser使用的Chromium引擎意外崩溃时,不会发生任何事情。要收集有关本机崩溃的信息并确定问题的根本原因,我们需要获取一个核心转储文件。核心转储文件由操作系统生成。默认情况下,禁用核心转储文件生成。要启用代码转储文件生成,您需要使用特定步骤配置Linux环境。)


The following short instruction explains how to enable core dump generation on Ubuntu:(以下简短说明说明了如何在Ubuntu上启用核心转储生成:)


This instruction is valid for JxBrowser 6.16 and higher. With the previous JxBrowser versions, core dump file generation isn't supported.(该指令对JxBrowser 6.16及更高版本有效。在以前的JxBrowser版本中,不支持核心转储文件的生成。)


Configuring Ubuntu 14.04 and higher(配置Ubuntu 14.04及更高版本)

By default, Ubuntu doesn't generate crash dump files. To enable core dump file generation you must modify the /proc/sys/kernel/core_pattern file via the following command:(默认情况下,Ubuntu不生成故障转储文件。要启用核心转储文件生成,必须通过以下命令修改/ proc / sys / kernel / core_pattern文件:)

$ echo '/tmp/core.%e.%p.%t' > /proc/sys/kernel/core_pattern

It will change a path for the core dump files, so those files would have the name with the /tmp/core.exe_name.pid.time pattern.(它将更改核心转储文件的路径,因此这些文件的名称将带有/tmp/core.exe_name.pid.time模式。)

Also, you must change the quota for storing dump files with the next command:(另外,您必须使用以下命令更改用于存储转储文件的配额:)

$ ulimit -c unlimited

After reboot all the changes will be reverted to default. To prevent this you need to edit the /etc/sysctl.conf file and set the kernel.core_pattern parameter to the required value. For example, in the /etc/sysctl.conf file put/modify the following property:(重新启动后,所有更改将恢复为默认值。为防止这种情况,您需要编辑/etc/sysctl.conf文件,并将kernel.core_pattern参数设置为所需值。例如,在/etc/sysctl.conf文件中,放置/修改以下属性:)

kernel.core_pattern = /tmp/core.%e.%p.%t

To enable core dump files generation on the operating system startup you must add the following line to /etc/profile:(要在操作系统启动时启用核心转储文件生成,必须在/ etc / profile中添加以下行:)

ulimit -c unlimited

When crash happens in the Chromium engine, the core dump file will be generated and saved in the /tmp directory with the core.%e.%p.%t name.(当Chromium引擎崩溃时,将生成核心转储文件并以core。%e。%p。%t名称保存在/ tmp目录中。)


Please share the generated core dump file with the JxBrowser Support team using an online file sharing service such as Dropbox, Google Drive, etc.(请使用在线文件共享服务(例如Dropbox,Google云端硬盘等)与JxBrowser支持团队共享生成的核心转储文件。)