Oxygen crashes when opening an xml file

<oXygen/> general issues.
wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Oxygen crashes when opening an xml file

Post by wmaclean » Fri Jan 08, 2021 6:43 pm

Hello,
We have a user who installed Oxygen Author 22 on Windows 10. Every time they try to open an .xml file, Oxygen crashes.

As another test, I opened their Oxygen Author, used File > New to create a new topic xml, then tried to save it - and it crashed again while saving.

Currently, it is crashing with no error message.

At one point, it was crashing with the following error:
image.png
image.png (101.26 KiB) Viewed 324 times
After deleting that file, it crashes with no error.

We've tried uninstalling/reinstalling Oxygen Author 22, but are having the same issue still.

Any idea how to fix this?

Thanks,
Will

Radu
Posts: 7315
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen crashes when opening an xml file

Post by Radu » Mon Jan 11, 2021 9:01 am

Hi Will,

That error dialog you are attaching is an effect and not a cause of the crash, Oxygen senses that it has crashed and tries to disable calls to certain native libraries.
Oxygen being a java application, we cannot control such crashes from our code, they usually occur in the Java virtual machine used by Oxygen.
In the Oxygen Preferences->"Global" page there is a "Use platform file chooser" checkbox, can you disable it on your side, then see if the crashes still occur or not?

Otherwise, if you look at our Oxygen 22.1 downloads page:

https://www.oxygenxml.com/xml_editor/so ... ditor.html

There are two Oxygen 64-bit installation kits, each with its own Java virtual machine version:

Windows 64-bit (Includes Java SE 8u202)Windows 64-bit (Includes Java SE 8u202)
Windows 64-bit (Includes Includes OpenJDK 14.0.1)Windows 64-bit (Includes Includes OpenJDK 14.0.1)

Can you try to install each of these kits in sequence and see if one of them works better than the other?

Also do you have any extra plugins installed in Oxygen?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Re: Oxygen crashes when opening an xml file

Post by wmaclean » Mon Jan 11, 2021 11:53 pm

Hi Radu,
I am having our user try both solutions. Hopefully one or the other works.

We have our own custom plugin, which has been installed on at least a dozen machines without this issue.

I'll get back to you, after we've tried the other solutions.

Thanks for your help.
Will

wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Re: Oxygen crashes when opening an xml file

Post by wmaclean » Tue Jan 12, 2021 6:43 pm

Hi Radu,
They used the Oxygen Preferences->"Global" page there is a "Use platform file chooser", and it fixed the issue.

Thanks for the help.
Will

adrian
Posts: 2701
Joined: Tue May 17, 2005 4:01 pm

Re: Oxygen crashes when opening an xml file

Post by adrian » Wed Jan 13, 2021 11:53 am

Hi Will,

So far the problem seems to be isolated to the native file chooser initialization (disabled by that option). Normally, if the native file chooser crashes once, Oxygen shouldn't try to initialize it again in the next session (there's a crash protection mechanism). But for whatever reason this crash protection doesn't seem to be working for you.

Just out of curiosity, if the user on that machine invokes the spell checker on an XML file (Edit > Check Spelling / F7), does it still crash?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Re: Oxygen crashes when opening an xml file

Post by wmaclean » Wed Jan 13, 2021 8:20 pm

Hi Adrian,
Yes, it still crashes:
image.png
image.png (54.06 KiB) Viewed 270 times
Any ideas?

Thanks,
Will

adrian
Posts: 2701
Joined: Tue May 17, 2005 4:01 pm

Re: Oxygen crashes when opening an xml file

Post by adrian » Thu Jan 14, 2021 11:14 am

Hi,

This last message means it recorded a crash in a previous session and because of that the spell checker has remained disabled.

After removing the "HunspellCrashGuardoxygenAuthor22.0Sa.txt" file (mentioned in the first screenshot) and restarting Oxygen, does it still crash when invoking it (Edit > Check Spelling / F7)?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Re: Oxygen crashes when opening an xml file

Post by wmaclean » Fri Jan 15, 2021 9:27 pm

Hello Adrian,
They deleted the file, and are now able to run spellchecks.

Are there other tests you'd like us to try?

Thanks for your help!
Will

adrian
Posts: 2701
Joined: Tue May 17, 2005 4:01 pm

Re: Oxygen crashes when opening an xml file

Post by adrian » Mon Jan 18, 2021 6:28 pm

Hi,
They deleted the file, and are now able to run spellchecks.
That means the spellchecker was just a bystander of the crash, not the cause and just got killed (turned off) in the process. The crash trigger is the native file chooser (Open/Save as dialog). I'm afraid this may be a system issue which is difficult to debug.
Is "Open/Save as" working correctly (no error messages or crashes) in other Windows builtin applications? Try Notepad or WordPad.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

wmaclean
Posts: 36
Joined: Sat Jan 04, 2020 1:17 am

Re: Oxygen crashes when opening an xml file

Post by wmaclean » Mon Jan 25, 2021 8:50 pm

Hi Adrian,
They were only having issues with the Open/Save dialog in Oxygen.

The fix Radu provided has been working for us, though.

Thanks for your help,
Will

Post Reply