无法显示 MapContainer
Can't show a MapContainer
我复活了一个 CN1 项目(已经发布)并尝试在 Netbeans 11 下的模拟器中运行(在 OpenJdK 11 上 运行ning)。然而项目一直崩溃。
我更新了 CN1 Google 地图扩展,刷新了库,但问题仍然存在。
所以我创建了一个新的 CN1 项目(未勾选 Java 8 项目因为它是 Java 11 项目),看看它是否崩溃。实际上它显示了 "Hi" 表格。但是后来我像以前一样添加了一个 MapContainer :
public void start() {
if(current != null){
current.show();
return;
}
MapContainer map = new MapContainer("myJAvascriptKey");
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
hi.add(BorderLayout.CENTER,map);
hi.show();
}
模拟器一直崩溃:
Retina Scale: 1.0
Rendering frame took too long 163 milliseconds
[JS Console] Here I am !!!
Rendering frame took too long 207 milliseconds
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f66f5c69762, pid=13967, tid=14053
#
# JRE version: OpenJDK Runtime Environment (11.0.4+11) (build 11.0.4+11-post-Debian-1bpo91)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+11-post-Debian-1bpo91, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x89a762]
Google 地图扩展版本是 42。我应该怎么做才能使一切正常?
感谢任何帮助,
将项目中的 JDK 更改为 JDK8。现在 JavaFX 中存在一个错误,当 运行 on JDK 11.
时,该错误会导致 Web 视图崩溃
我复活了一个 CN1 项目(已经发布)并尝试在 Netbeans 11 下的模拟器中运行(在 OpenJdK 11 上 运行ning)。然而项目一直崩溃。
我更新了 CN1 Google 地图扩展,刷新了库,但问题仍然存在。
所以我创建了一个新的 CN1 项目(未勾选 Java 8 项目因为它是 Java 11 项目),看看它是否崩溃。实际上它显示了 "Hi" 表格。但是后来我像以前一样添加了一个 MapContainer :
public void start() {
if(current != null){
current.show();
return;
}
MapContainer map = new MapContainer("myJAvascriptKey");
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
hi.add(BorderLayout.CENTER,map);
hi.show();
}
模拟器一直崩溃:
Retina Scale: 1.0
Rendering frame took too long 163 milliseconds
[JS Console] Here I am !!!
Rendering frame took too long 207 milliseconds
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f66f5c69762, pid=13967, tid=14053
#
# JRE version: OpenJDK Runtime Environment (11.0.4+11) (build 11.0.4+11-post-Debian-1bpo91)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+11-post-Debian-1bpo91, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x89a762]
Google 地图扩展版本是 42。我应该怎么做才能使一切正常?
感谢任何帮助,
将项目中的 JDK 更改为 JDK8。现在 JavaFX 中存在一个错误,当 运行 on JDK 11.
时,该错误会导致 Web 视图崩溃