We're Hiring!

OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

Postby bernhard » Fri Aug 21, 2009 11:42 am

Good afternoon!

I'm having trouble to get an OmeroCpp client running on Windows 64bit. The basic communication seems to work as long as the server does not return data. I can create a session and a query service. If I run a query that returns something I get a Ice::UnmarshalOutOfBoundsException, whereas a query that returns nothing works without any exception.

The Windows 32bit build works fine, as well as Linux 32bit and 64bit builds.

The server is on a Linux 64bit system.

For your inforamtion: I did compile the OmeroCpp library with the sources that were generated by a Linux build created with the build.py script provided by Omero.

Thanks for help! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

Postby cxallan » Fri Aug 21, 2009 12:53 pm

I don't think this is really going to matter but is this XP x64, Vista 64-bit edition or Windows 7 64-bit edition Bernhard?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

Postby bernhard » Fri Aug 21, 2009 1:51 pm

Hi Chris,

it's a Vista 64bit system.

Thanks! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

Postby jmoore » Mon Aug 24, 2009 5:08 pm

Hi Bernhard,

the general rule is UnmarshalOutOfBoundExceptions come from *.ice version mismatches. There was a period early in OmeroCpp development, however, when the compiler flags were causing these and other exceptions:

http://www.zeroc.com/forums/bug-reports ... stems.html

Another possibility that I've just run into is that the System environment variables might not be set properly for x64 systems:

http://lists.openmicroscopy.org.uk/pipe ... 02042.html

From the Ice README.txt,
Code: Select all

If you built an x64 configuration, use this setting instead (the
x64 directory must come first in your PATH):

set PATH=<Ice installation root directory>\bin;%PATH%
set PATH=<Ice installation root directory>\bin\x64;%PATH%


~J.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

Postby bernhard » Tue Aug 25, 2009 6:49 am

Hi Josh!

There was a period early in OmeroCpp development, however, when the compiler flags were causing these and other exceptions:

http://www.zeroc.com/forums/bug-reports ... stems.html


I've seen this thread in the forum, however, it does not help here as we're compiling OmeroCpp with Visual Studio.

Concerning the second point, it's something not relevant for our current setup. I don't build OmeroCpp on Windows with the omero build scripts. As said before, I'm copying the generated files from a Linux build. Therefor, all I need are the Ice libraries and those I'm using are the 64bit versions, otherwise the linkage would fail.

Maybe I should try generating the OmeroCpp files on Windows. Have you've tried to build OmeroCpp on Windows before? From what I can see in the scons files, I guess at least the compilation is not portable to Windows without setting up a different environment.

Thanks! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am


Return to Developer Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron