# Avogadro 1.1.0 cannot deal with files with certain names?

**URL:** <https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289>\
**Category:** General Discussion\
**Created:** [February 1, 2013, 10:40pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289 "2013-02-01T22:40:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xing\_Yin](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/x/c89c15/32.png) [@Xing\_Yin](https://discuss.avogadro.cc/u/Xing_Yin)\
**Post date:** [February 1, 2013, 10:40pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/1 "2013-02-01T22:40:01Z")

</div>

Dear all,

The attached pdbs are two identical files from Protein Data Bank. The  
one with the original name “2K4G.pdb” will cause Avogadro 1.1.0 to crash  
(see 2K4G.log) and just changing the name from “2K4G.pdb” to  
"2K4G\_avo.pdb" will prevent the software from crashing. Avogadro 1.0.3  
does not have this problem. Maybe it’s related to the new Open Babel  
version (2.3.1) ? Actually this happens to various files containing  
large molecules and the error messages are usually different from one to  
another.

I can reproduce the bug on both Windows 7 and OpenSUSE 12.2 platforms.  
Am I the only one facing the problem or maybe it is really a bug?

Thanks!

–  
Xing Yin  
Graduate Student  
Department of Chemistry  
University of Pittsburgh

---

<div class="post-metadata">

**Author:** ![allison.vacanti](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/allison.vacanti/32/112_2.png) [@allison.vacanti](https://discuss.avogadro.cc/u/allison.vacanti)\
**Post date:** [February 3, 2013, 2:05pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/2 "2013-02-03T14:05:33Z")

</div>

On Fri, Feb 1, 2013 at 5:40 PM, Xing [xiy25@pitt.edu](mailto:xiy25@pitt.edu) wrote:

> Dear all,
> 
> The attached pdbs are two identical files from Protein Data Bank. The one  
> with the original name “2K4G.pdb” will cause Avogadro 1.1.0 to crash (see  
> 2K4G.log) and just changing the name from “2K4G.pdb” to “2K4G\_avo.pdb” will  
> prevent the software from crashing. Avogadro 1.0.3 does not have this  
> problem. Maybe it’s related to the new Open Babel version (2.3.1) ?  
> Actually this happens to various files containing large molecules and the  
> error messages are usually different from one to another.
> 
> I can reproduce the bug on both Windows 7 and OpenSUSE 12.2 platforms. Am  
> I the only one facing the problem or maybe it is really a bug?

Definitely an odd bug, one that I cannot reproduce here.

But, digging through the sources, I find the error message at the end of  
the .log file in the openqube mopac .aux file reader. Are there any files  
in the directory with 2K4G.pdb that have a .aux (or similar) extension? Or  
have you done any MOPAC calculations on it?

Does it work if you move the pdb file to another directory?

I don’t see this particular error message anywhere else in openbabel or  
avogadro, so it definitely seems to be because of a bad .aux file.

If you still see this issue with the pdb file in another directory, we’ll  
need to get a backtrace of the crash to really track this down.

> Department of Chemistry  
> University of Pittsburgh

Perhaps Dr. Hutchison could help with the debug build/backtrace if needed  
😉

Dave

---

<div class="post-metadata">

**Author:** ![Xing\_Yin](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/x/c89c15/32.png) [@Xing\_Yin](https://discuss.avogadro.cc/u/Xing_Yin)\
**Post date:** [February 3, 2013, 3:26pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/3 "2013-02-03T15:26:31Z")

</div>

Wow, I do have 2K4G.aux (generated by MOPAC2012) in the same directory  
as 2K4G.pdb. Once I copy 2K4G.pdb into a new folder, it can be read by  
Avogadro 1.1.0 without a problem just like 2K4G\_avo.pdb. Simply symlink  
2K4G.pdb to another directory cannot solve the problem.

Thanks very much! Now I know what is the problem and how to avoid it. 😉  
But still, is Avogadro supposed to read an aux file while loading a pdb  
file? If so, can Avogadro continue to load the pdb if something is wrong  
in the aux file?

Thanks!

–  
Xing Yin  
Graduate Student  
Department of Chemistry  
University of Pittsburgh

On 02/03/2013 09:05 AM, David Lonie wrote:

> On Fri, Feb 1, 2013 at 5:40 PM, Xing \<xiy25@pitt.edu  
> [mailto:xiy25@pitt.edu](mailto:xiy25@pitt.edu)\> wrote:
> 
> > Dear all,
> > 
> > The attached pdbs are two identical files from Protein Data Bank.  
> > The one with the original name “2K4G.pdb” will cause Avogadro 1.1.0 to  
> > crash (see 2K4G.log) and just changing the name from “2K4G.pdb” to  
> > “2K4G\_avo.pdb” will prevent the software from crashing. Avogadro 1.0.3  
> > does not have this problem. Maybe it’s related to the new Open Babel  
> > version (2.3.1) ? Actually this happens to various files containing  
> > large molecules and the error messages are usually different from one  
> > to another.
> > 
> > I can reproduce the bug on both Windows 7 and OpenSUSE 12.2  
> > platforms. Am I the only one facing the problem or maybe it is really  
> > a bug?
> 
> Definitely an odd bug, one that I cannot reproduce here.
> 
> But, digging through the sources, I find the error message at the end  
> of the .log file in the openqube mopac .aux file reader. Are there any  
> files in the directory with 2K4G.pdb that have a .aux (or similar)  
> extension? Or have you done any MOPAC calculations on it?
> 
> Does it work if you move the pdb file to another directory?
> 
> I don’t see this particular error message anywhere else in openbabel  
> or avogadro, so it definitely seems to be because of a bad .aux file.
> 
> If you still see this issue with the pdb file in another directory,  
> we’ll need to get a backtrace of the crash to really track this down.
> 
> > Department of Chemistry  
> > University of Pittsburgh
> 
> Perhaps Dr. Hutchison could help with the debug build/backtrace if  
> needed 😉
> 
> Dave
> 
> * * *
> 
> Everyone hates slow websites. So do we.  
> Make your web apps faster with AppDynamics  
> Download AppDynamics Lite for free today:  
> [http://p.sf.net/sfu/appdyn\_d2d\_jan](http://p.sf.net/sfu/appdyn_d2d_jan)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)

---

<div class="post-metadata">

**Author:** ![allison.vacanti](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/allison.vacanti/32/112_2.png) [@allison.vacanti](https://discuss.avogadro.cc/u/allison.vacanti)\
**Post date:** [February 3, 2013, 3:58pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/4 "2013-02-03T15:58:25Z")

</div>

On Sun, Feb 3, 2013 at 10:26 AM, Xing Yin [xiy25@pitt.edu](mailto:xiy25@pitt.edu) wrote:

> Wow, I do have 2K4G.aux (generated by MOPAC2012) in the same directory  
> as 2K4G.pdb. Once I copy 2K4G.pdb into a new folder, it can be read by  
> Avogadro 1.1.0 without a problem just like 2K4G\_avo.pdb. Simply symlink  
> 2K4G.pdb to another directory cannot solve the problem.
> 
> Thanks very much! Now I know what is the problem and how to avoid it. 😉  
> But still, is Avogadro supposed to read an aux file while loading a pdb  
> file? If so, can Avogadro continue to load the pdb if something is wrong in  
> the aux file?

It should, but there seems to be an issue in the mopac aux file reader. Can  
you attach the .aux file? I’d like to see what’s causing the crash.

Dave

---

<div class="post-metadata">

**Author:** ![Xing\_Yin](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/x/c89c15/32.png) [@Xing\_Yin](https://discuss.avogadro.cc/u/Xing_Yin)\
**Post date:** [February 3, 2013, 4:01pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/5 "2013-02-03T16:01:05Z")

</div>

It’s attached in my previous reply. Here it is again. 😉

Sincerely yours  
Xing Yin  
Department of Chemistry, Univ Pittsburgh  
G-3 Chevron Science Center  
219 Parkman Ave  
Pittsburgh, PA 15260

On 02/03/2013 10:58 AM, David Lonie wrote:

> On Sun, Feb 3, 2013 at 10:26 AM, Xing Yin \<xiy25@pitt.edu  
> [mailto:xiy25@pitt.edu](mailto:xiy25@pitt.edu)\> wrote:
> 
> ```
> Wow, I do have 2K4G.aux (generated by MOPAC2012) in the same
> directory as 2K4G.pdb. Once I copy 2K4G.pdb into a new folder, it
> can be read by Avogadro 1.1.0 without a problem just like
> 2K4G_avo.pdb. Simply symlink 2K4G.pdb to another directory cannot
> solve the problem.
> 
> Thanks very much! Now I know what is the problem and how to avoid
> it. ;) But still, is Avogadro supposed to read an aux file while
> loading a pdb file? If so, can Avogadro continue to load the pdb
> if something is wrong in the aux file?
> 
> ```
> 
> It should, but there seems to be an issue in the mopac aux file  
> reader. Can you attach the .aux file? I’d like to see what’s causing  
> the crash.
> 
> Dave
> 
> * * *
> 
> Everyone hates slow websites. So do we.  
> Make your web apps faster with AppDynamics  
> Download AppDynamics Lite for free today:  
> [http://p.sf.net/sfu/appdyn\_d2d\_jan](http://p.sf.net/sfu/appdyn_d2d_jan)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)

---

<div class="post-metadata">

**Author:** ![allison.vacanti](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/allison.vacanti/32/112_2.png) [@allison.vacanti](https://discuss.avogadro.cc/u/allison.vacanti)\
**Post date:** [February 3, 2013, 4:24pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/6 "2013-02-03T16:24:07Z")

</div>

This patch should fix it in the next release:

[http://review.source.kitware.com/#/t/2057/](http://review.source.kitware.com/#/t/2057/)

Thanks for the report!

Dave

On Sun, Feb 3, 2013 at 11:01 AM, Xing Yin [xiy25@pitt.edu](mailto:xiy25@pitt.edu) wrote:

> It’s attached in my previous reply. Here it is again. 😉
> 
> Sincerely yours  
> Xing Yin  
> Department of Chemistry, Univ Pittsburgh  
> G-3 Chevron Science Center  
> 219 Parkman Ave  
> Pittsburgh, PA 15260
> 
> On 02/03/2013 10:58 AM, David Lonie wrote:
> 
> On Sun, Feb 3, 2013 at 10:26 AM, Xing Yin [xiy25@pitt.edu](mailto:xiy25@pitt.edu) wrote:
> 
> > Wow, I do have 2K4G.aux (generated by MOPAC2012) in the same directory  
> > as 2K4G.pdb. Once I copy 2K4G.pdb into a new folder, it can be read by  
> > Avogadro 1.1.0 without a problem just like 2K4G\_avo.pdb. Simply symlink  
> > 2K4G.pdb to another directory cannot solve the problem.
> > 
> > Thanks very much! Now I know what is the problem and how to avoid it. 😉  
> > But still, is Avogadro supposed to read an aux file while loading a pdb  
> > file? If so, can Avogadro continue to load the pdb if something is wrong in  
> > the aux file?
> 
> It should, but there seems to be an issue in the mopac aux file reader.  
> Can you attach the .aux file? I’d like to see what’s causing the crash.
> 
> Dave
> 
> * * *
> 
> Everyone hates slow websites. So do we.  
> Make your web apps faster with AppDynamics  
> Download AppDynamics Lite for free today:[http://p.sf.net/sfu/appdyn\_d2d\_jan](http://p.sf.net/sfu/appdyn_d2d_jan)
> 
> * * *
> 
> Avogadro-Discuss mailing listAvogadro-Discuss@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/avogadro-discuss
> 
> * * *
> 
> Everyone hates slow websites. So do we.  
> Make your web apps faster with AppDynamics  
> Download AppDynamics Lite for free today:  
> [http://p.sf.net/sfu/appdyn\_d2d\_jan](http://p.sf.net/sfu/appdyn_d2d_jan)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [February 3, 2013, 7:01pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/7 "2013-02-03T19:01:07Z")

</div>

> This patch should fix it in the next release:

Speaking of which, if you need it on OpenSuse, let me know and I can show you how to get things compiled from source. Windows is a bit trickier.

-Geoff

* * *

Prof. Geoffrey Hutchison  
Department of Chemistry  
University of Pittsburgh  
tel: (412) 648-0492  
email: [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com)  
web: [http://hutchison.chem.pitt.edu/](http://hutchison.chem.pitt.edu/)

---

<div class="post-metadata">

**Author:** ![Xing\_Yin](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/x/c89c15/32.png) [@Xing\_Yin](https://discuss.avogadro.cc/u/Xing_Yin)\
**Post date:** [February 3, 2013, 7:37pm UTC](https://discuss.avogadro.cc/t/avogadro-1-1-0-cannot-deal-with-files-with-certain-names/289/8 "2013-02-03T19:37:13Z")

</div>

Yeah, OpenSUSE is much easier for me. I have some experience with OBS so  
I checked out the package, applied the patch and built it locally (and  
online). It works great now! 🙂

Thanks so much!

Sincerely yours  
Xing Yin  
Department of Chemistry, Univ Pittsburgh  
G-3 Chevron Science Center  
219 Parkman Ave  
Pittsburgh, PA 15260

On 02/03/2013 02:01 PM, Geoffrey Hutchison wrote:

> > This patch should fix it in the next release:
> 
> Speaking of which, if you need it on OpenSuse, let me know and I can  
> show you how to get things compiled from source. Windows is a bit  
> trickier.
> 
> -Geoff
> 
> * * *
> 
> Prof. Geoffrey Hutchison  
> Department of Chemistry  
> University of Pittsburgh  
> tel: (412) 648-0492  
> email: [geoff.hutchison@gmail.com](mailto:geoff.hutchison@gmail.com) [mailto:geoffh@pitt.edu](mailto:geoffh@pitt.edu)  
> web: [http://hutchison.chem.pitt.edu/](http://hutchison.chem.pitt.edu/)
> 
> * * *
> 
> Everyone hates slow websites. So do we.  
> Make your web apps faster with AppDynamics  
> Download AppDynamics Lite for free today:  
> [http://p.sf.net/sfu/appdyn\_d2d\_jan](http://p.sf.net/sfu/appdyn_d2d_jan)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)
