I have BaseX 8.6.7 on 32 bit Windows 10. When I tried to load an XML file yesterday to editor, the program crashed. I tried several times, and then reinstalled BaseX from net. This did not help. The program crashes on file dialog. If I open the file with double click, the file opens. Then I reinstalled java, but this did not help either.When I used cmd window, and run "java -cp BaseX.jar org.basex.BasexGUI", it worked. So it seems problem is on Java version embedded.
Windows is 10.0.16299.19, and Java that works is 1.8.0_144-b01
Arto Viitanen Microteam Oy Haarlankatu 4B 33230 Tampere
Hi Arto,
Maybe the heap setting we used for creating the Windows executable was too large for 32 bit systems (we had a similar issue with the batch scripts). I’ve just adjusted the value [1]. Could you check if the problem persists with the latest snapshot [2]?
If not, could you specify what »crash« means? How large is the file you want to open in the editor? It’s generally possible to open pretty large files as text in BaseX (the memory consumption of an opened file will not be larger than the actual file size), but if it comes close to the JVM heap size, it might be better to create a database from this file instead. I could think about adding a size warning before opening the file in the editor.
Best, Christian
[1] https://github.com/BaseXdb/basex-dist/commit/4adda691c9730d0dba7442ae25acc26... [2] http://files.basex.org/releases/latest/
On Wed, Nov 15, 2017 at 12:07 PM, Arto Viitanen arto.viitanen@microteam.fi wrote:
I have BaseX 8.6.7 on 32 bit Windows 10. When I tried to load an XML file yesterday to editor, the program crashed. I tried several times, and then reinstalled BaseX from net. This did not help. The program crashes on file dialog. If I open the file with double click, the file opens. Then I reinstalled java, but this did not help either.When I used cmd window, and run “java -cp BaseX.jar org.basex.BasexGUI”, it worked. So it seems problem is on Java version embedded.
Windows is 10.0.16299.19, and Java that works is 1.8.0_144-b01
Arto Viitanen
Microteam Oy
Haarlankatu 4B
33230 Tampere
The program stops (i.e. crashes), when I choose "Editor/Open" or "Editor/Save As" menus or when I click the "Choose Dialog" icon from the Project panel. Since I have not yet selected any file, I guess heap size does not matter. Actually, if I double click the file in Project panel, it opens ok. So I can use the BaseX, if I run it first with "java -cp BaseX.jar org.basex.BaseXGUI", the select the project directory, stop it and run BaseX.exe and select files I need from the project panel.
I attached the crash log (I guess, since new one comes to c:\Program Files\BaseX each time the program craches) using the newer binary.
-- Arto Viitanen
I attached the crash log (I guess, since new one comes to c:\Program Files\BaseX each time the program craches) using the newer binary.
Thanks. Unfortunately this is a JVM bug that we cannot fix; it may be related to [1]. It could help to upgrade to the latest JRE version. On the other hand, your version is fairly new, and it doesn’t seem as if the problem has been fully fixed by the developers. Changing the Look and Feel seems to be another alternative (via the BaseX GUI preference dialog), but not a very aesthetically pleasing one.
I removed older versions of Java, so BaseX use same version as command line. This helped. My java version is 1.8.0-144-b01. Crashing version was 1.8.0_92-b14.
-- Arto Viitanen
basex-talk@mailman.uni-konstanz.de