﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
121	String too long error opening mmCIF file	Tom Goddard	Greg Couch	"Opening the mmcif file 1voq_1vor_1vos_1vou_1vov_1vow_1vox_1voy_1voz_1vp0 found on the PDB mmCIF examples web page produces a ""String too long"" error in Chimera.

http://mmcif.wwpdb.org/docs/large-pdbx-examples/

This is a 100 Mbyte file so I am not going to attach it to the ticket.

Not clear what string is too long, maybe a chain name, or residue name or some other fixed length string.

We should use C++ std::string to avoid string length issues.  The use of fixed length strings was to save memory but from what I recall it saved a neglible 2%.


Traceback (most recent call last):
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/gui.py"", line 313, in <lambda>
self.Bind(wx.EVT_MENU, lambda evt, ses=session: self.on_open(evt, ses),
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/gui.py"", line 205, in on_open
session.models.open(paths)
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/models.py"", line 256, in open
models, status = io.open_multiple_data(session, filenames, **kw)
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/io.py"", line 611, in open_multiple_data
models, status = open_data(session, fspec, **kw)
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/io.py"", line 574, in open_data
models, status = open_func(session, stream, name, **kw)
File ""/Users/goddard/ucsf/chimera2/Chimera2.app/Contents/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/chimera/core/mmcif.py"", line 25, in open_mmcif
pointers = _mmcif.parse_mmCIF_file(filename, session.logger)
TypeError: String too long"	defect	closed	major		Input/Output		fixed		pett@…				all	chimera
