[ome-devel] [ome-files] Getting Exceptions When Opening Files for setId(...)

Dennis Ai dennis.ai at sri.com
Thu Jan 25 01:55:24 GMT 2018


Hello,

 

I am trying to use ome-files (C++, 0.5.0) for the first time, and am trying to use the setId method to open an existing OME-TIFF on Windows.  What path should I be sending to setId(…) for OMETIFFReader?  A relative path, an absolute path, or either?

 

My function is described below.

 

void open(const char* filepath)

{

       std::string fp(filepath);

       boost::filesystem::path bfp{ fp };

       reader->setId(bfp);

}

 

I placed a copy of the file at “C:\multi-channel.ome.tiff”.  When I pass “C:\\ multi-channel.ome.tiff”, I get the following exceptions.

 

Exception thrown at 0x00007FFEB8F53C58 in vstest.executionengine.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000BBFE17AD30.

Exception thrown at 0x00007FFEB8F53C58 in vstest.executionengine.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000BBFE178360.

 

Stack Trace: 

       ntdll.dll!00007ffebbef6124()      Unknown

      KernelBase.dll!00007ffeb8f53acf() Unknown

      ntdll.dll!00007ffebbefab6d()      Unknown

      ntdll.dll!00007ffebbe99933()      Unknown

      ntdll.dll!00007ffebbef9c8a()      Unknown

      KernelBase.dll!00007ffeb8f53c58() Unknown

      vcruntime140.dll!00007ffeaea446e2()      Unknown

      OMEFiles.dll!ome::common::module_runtime_path(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)  C++

      OMEFiles.dll!ome::xml::OMEEntityResolver::OMEEntityResolver(void)    C++

      OMEFiles.dll!ome::xml::createDocument(class boost::filesystem::path const &,struct ome::common::xml::dom::ParseParameters const &) C++

      OMEFiles.dll!ome::xml::createDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct ome::common::xml::dom::ParseParameters const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)  C++

      OMEFiles.dll!_guard_dispatch_icall_nop‑() C++

      vcruntime140.dll!00007ffeaea4c8c0()      Unknown

      vcruntime140.dll!00007ffeaea42e83()      Unknown

      ntdll.dll!00007ffebbefa163()      Unknown

>      OMEFiles.dll!ome::files::createOMEXMLMetadata(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)  C++

      OMEFiles.dll!ome::files::in::OMETIFFReader::cacheMetadata(class boost::filesystem::path const &)     C++

      OMEFiles.dll!ome::files::in::OMETIFFReader::initFile(class boost::filesystem::path const &)       C++

      OMEFiles.dll!ome::files::detail::FormatReader::setId(class boost::filesystem::path const &)       C++

      OMEFiles.dll!OMETIFFReader::open(const char * filepath) Line 43      C++

 

I then moved the file “C:\Users\...\Documents\Visual Studio 2015\Projects\OMEFilesSharp\OMEFilesSharp.UnitTests\bin\x64\Debug\Resources\multi-channel.ome.tiff”.  When I pass “C:\\Users\\...\\Documents\\Visual Studio 2015\\Projects\\OMEFilesSharp\\OMEFilesSharp.UnitTests\\bin\\x64\\Debug\\Resources\\multi-channel.ome.tiff”, I get the following exceptions.

 

Exception thrown at 0x00007FFEB8F53C58 in vstest.executionengine.exe: Microsoft C++ exception: ome::files::tiff::Exception at memory location 0x0000001AED2BB080.

Exception thrown at 0x00007FFEB8F53C58 in vstest.executionengine.exe: Microsoft C++ exception: ome::files::tiff::Exception at memory location 0x0000001AED2BB200.

Exception thrown at 0x00007FFEB8F53C58 in vstest.executionengine.exe: Microsoft C++ exception: ome::files::FormatException at memory location 0x0000001AED2BB378.

 

Stack Trace: 

      ntdll.dll!00007ffebbef6124()   Unknown

     KernelBase.dll!00007ffeb8f53acf()     Unknown

     ntdll.dll!00007ffebbefab6d()   Unknown

     ntdll.dll!00007ffebbe99933()   Unknown

     ntdll.dll!00007ffebbef9c8a()   Unknown

     KernelBase.dll!00007ffeb8f53c58()     Unknown

     vcruntime140.dll!00007ffeaea446e2()   Unknown

     OMEFiles.dll!ome::files::in::OMETIFFReader::getTIFF(class boost::filesystem::path const &)    C++

     OMEFiles.dll!ome::files::in::OMETIFFReader::initFile(class boost::filesystem::path const &)    C++

     OMEFiles.dll!ome::files::detail::FormatReader::setId(class boost::filesystem::path const &)    C++

 

Thanks,

 

Dennis Ai

Senior Strategic Advisor, SRI Biosciences

SRI International

333 Ravenswood Ave

Menlo Park, CA 94025

(847) 440-4765

 

SRI Biosciences™

A DIVISION OF SRI INTERNATIONAL

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20180125/8be088e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5112 bytes
Desc: not available
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20180125/8be088e1/attachment.p7s>


More information about the ome-devel mailing list