首页 / 浏览问题 / 组件GIS / 问题详情
iobject 导出 kmz ,JVM崩溃
6EXP 2021年08月31日

使用产品:iserver10.1.2a 操作系统:win10 x64
数据类型: 文件型
问题详细描述:执行 dataExport.run() 导出操作直接jvm崩溃,使用idesktop 执行可生产,2d,3d都可以
问题重现步骤:

ExportSettingKMZ settingKMZ = new ExportSettingKMZ(dv,fileName);
DataExport dataExport = new DataExport();
ExportSettings settings = new ExportSettings();
settings.add(settingKMZ);
dataExport.setExportSettings(settings);
dataExport.run();
Runtime runtime = Runtime.getRuntime();
try {
    File file = new File(
            fileName);
    runtime.exec("explorer /n,/select, " + file.getAbsolutePath());
} catch (IOException e) {
    e.printStackTrace();
}

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000001a21f4efdd0, pid=37820, tid=0x00000000000051bc
#
# JRE version: OpenJDK Runtime Environment (8.0_265-b01) (build 1.8.0_265-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.265-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [SuEngine.dll+0x5fdd0]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\IdeaProjects\micro-pdip-server\hs_err_pid37820.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

2 个回答

您好,请您单独下载组件产品进行使用,需要注意的是该方法只能导出4326坐标系的数据集。
2,842EXP 2021年08月31日
坐标确认没问题,用idesktop 试了,能直接导出。问下,单独下载组件产品指的是什么
ExportSettingKMZ settingKMZ = new ExportSettingKMZ(dv,fileName);

dv 必须得是 Dataset[] datasets = {dv}; 是个数组啊,数组,传对象直接蹦;问题已解决

6EXP 2021年09月01日
...