Segmentation fault when saving/exporting

Environment Information

Avogadro version: 1.97
Operating system and version: Arch Linux, package avogadro2 via AUR

Expected Behavior

Should be able to save files

Actual Behavior

There is a segmentation fault no matter what kind of extension I try to use, .cjson or .pdb. The following error message can be seen in the terminal

kf.kio.core: Invalid URL: QUrl("")
zsh: segmentation fault (core dumped)  avogadro2

Steps to Reproduce

  1. Place any molecule(s)
  2. Try to save

This is really weird. There’s no use of QUrl in saving files. Are you saving to a local disk? Can you say a bit more about your system? KDE, I guess?

You also mention “no matter what kind of extension” … The “save” will default to either CJSON or CML and won’t accept PDB or other extensions. (We did this because a lot of users were confused when they’d save to formats like XYZ or PDB and bond orders would change.)

Does this happen when doing File => Export => Molecule?

I’m using Arch Linux and KDE. I’ve acquired it from Arch’s user repository. I had another computer handy, also Arch Linux but using XFCE instead. There it is saving properly so I’m not sure either what it’s about or something specific about KDE. I’ll perhaps build it from source and try to debug it.

That would be great. I don’t know any place in the code for saving files that uses URLs at all.