Page 1 of 1

Oxygen crashes when opening an xml file

Posted: Fri Jan 08, 2021 6:43 pm
by wmaclean
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 2912 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

Re: Oxygen crashes when opening an xml file

Posted: Mon Jan 11, 2021 9:01 am
by Radu
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

Re: Oxygen crashes when opening an xml file

Posted: Mon Jan 11, 2021 11:53 pm
by wmaclean
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

Re: Oxygen crashes when opening an xml file

Posted: Tue Jan 12, 2021 6:43 pm
by wmaclean
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

Re: Oxygen crashes when opening an xml file

Posted: Wed Jan 13, 2021 11:53 am
by adrian
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

Re: Oxygen crashes when opening an xml file

Posted: Wed Jan 13, 2021 8:20 pm
by wmaclean
Hi Adrian,
Yes, it still crashes:
image.png
image.png (54.06 KiB) Viewed 2858 times
Any ideas?

Thanks,
Will

Re: Oxygen crashes when opening an xml file

Posted: Thu Jan 14, 2021 11:14 am
by adrian
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

Re: Oxygen crashes when opening an xml file

Posted: Fri Jan 15, 2021 9:27 pm
by wmaclean
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

Re: Oxygen crashes when opening an xml file

Posted: Mon Jan 18, 2021 6:28 pm
by adrian
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

Re: Oxygen crashes when opening an xml file

Posted: Mon Jan 25, 2021 8:50 pm
by wmaclean
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