﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
653	Odd library problem installing OpenMM 7.1.0	Tristan Croll	tic20@…	"As per Tom's suggestion a while back, I've installed OpenMM 7.1.0 into ChimeraX's Python on my machine - and come across the following little oddity. If I try to run ISOLDE immediately after starting ChimeraX, it crashes back to the command line on hitting the line:

{{{
from simtk.openmm import Platform
}}}

with the backtrace pasted below. The weird thing is that if I first open the shell and type:


{{{
from simtk import openmm
}}}

and ''then'' run ISOLDE, everything works just fine. Nothing changes if I add the ... import openmm line to ISOLDE prior to importing Platform. From the backtrace, the crash is due to it finding the main libOpenMM.so in the new location (/home/tic20/apps/openmm-7.1.0/lib), but still finding the OpenMM plugin libraries in the old location (/home/tic20/apps/chimerax/lib/plugins). So it would seem that imports via the shell and imports via the back end see slightly different library search paths.
 
Top of the stack trace:

{{{
*** Error in `/home/tic20/apps/chimerax/bin/ChimeraX': malloc(): memory corruption: 0x0000000005bef5b0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7e89d)[0x7f7ccab9d89d]
/lib64/libc.so.6(__libc_malloc+0x4c)[0x7f7ccab9f26c]
/home/tic20/apps/gcc-4.9.2/lib64/libstdc++.so.6(_Znwm+0x18)[0x7f7ccb4584a8]
/home/tic20/apps/openmm-7.1.0/lib/libOpenMM.so(_ZNSt8_Rb_treeISsSt4pairIKSsPN6OpenMM13KernelFactoryEESt10_Select1stIS5_ESt4lessISsESaIS5_EE17_M_insert_unique_ESt23_Rb_tree_const_iteratorIS5_ERKS5_+0x23e)[0x7f7beaded4ee]
/home/tic20/apps/openmm-7.1.0/lib/libOpenMM.so(_ZN6OpenMM8Platform21registerKernelFactoryERKSsPNS_13KernelFactoryE+0x11c)[0x7f7beadebc1c]
/home/tic20/apps/openmm-7.1.0/lib/libOpenMM.so(_ZN6OpenMM17ReferencePlatformC1Ev+0x16f)[0x7f7beae340af]
/home/tic20/apps/chimerax/lib/plugins/libOpenMMCPU.so(_ZN6OpenMM11CpuPlatformC2Ev+0x14)[0x7f7be9c48434]
/home/tic20/apps/chimerax/lib/plugins/libOpenMMCPU.so(registerPlatforms+0x30)[0x7f7be9c483c0]
/home/tic20/apps/openmm-7.1.0/lib/libOpenMM.so(_ZN6OpenMM8Platform24loadPluginsFromDirectoryERKSs+0x457)[0x7f7beadeb107]
/home/tic20/apps/chimerax/lib/python3.6/site-packages/simtk/openmm/_openmm.cpython-36m-x86_64-linux-gnu.so(+0xf1e2c)[0x7f7beb2b3e2c]
}}}


"	defect	closed	major	0.7	Tool Shed		fixed		goddard@…				all	ChimeraX
