Hi Bruce, hi Matt, the other day a colleague encountered a problem. He measured a ZnO standard. I have the ZnO.fpj project file and can share the data. It is about 1.2 MB in size though. Shall I upload it to a public file hoster or sent it to your email account? At first I thought this is a problem with my installation steps on Fedora 18 x86_64, but I could reproduce the problem with Ubuntu 12.04 i686. The line numbers match, so I will post only the output from dartemis on Ubuntu. Note: this file was created with the Windows version of Demeter on Windows 7 Enterprise 32bit (running on Fedora 18 x86_64 as VirtualBox 4.2.18 virtual machine). Demeter crashes in the Windows version as well using the steps below. steps to reproduce: * start dartemis from a terminal * open project file in dartemis through 'Artemis [EXAFS data analysis]' window: File -- open project * in the 'Artemis [Plot]' window click on [R] button * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window * wait about 10 seconds; dartemis will crash with the below error message ### Ubuntu 12.04 i686 test@test2:~$ dartemis Attribute (bft_rmax) does not pass the type constraint because: Num is not larger than 0 at accessor Demeter::Data::bft_rmax (defined at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/Data.pm line 406) line 7. Demeter::Data::bft_rmax(Demeter::Data=HASH(0x106540d8), -100000.000) called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 909 Demeter::UI::Artemis::Data::fetch_parameters(Demeter::UI::Artemis::Data=HASH(0x1085c3f4)) called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 662 Demeter::UI::Artemis::Data::Pluck(Demeter::UI::Artemis::Data=HASH(0x1085c3f4), Wx::CommandEvent=SCALAR(0x101c7ff8), "rmax") called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 362 Demeter::UI::Artemis::Data::__ANON__(Demeter::UI::Artemis::Data=HASH(0x1085c3f4), Wx::CommandEvent=SCALAR(0x101c7ff8)) called at /home/test/perl5/bin/dartemis line 39 eval {...} called at /home/test/perl5/bin/dartemis line 39 The installation steps on Ubuntu 12.04 i686 were: sudo apt-get install -y openssl-server # for my own pleasure sudo apt-get install -y gcc gfortran libx11-dev libncurses5 libncurses5-dev libpng3 libpng3-dev libgif4 libwxgtk2.8-dev git build-essential gnuplot perl cd git clone https://github.com/newville/ifeffit.git cd ifeffit sudo ./PGPLOT_install ./configure make sudo make install cd git clone git://github.com/bruceravel/demeter.git cd demeter sudo apt-get install -y liblocal-lib-perl sudo apt-get install -y libnet-ssleay-perl sudo apt-get install -y libssl-devl # due to 'SSLeay.xs:153:25: fatal error: openssl/err.h: No such file or directory' at Net::SSLeay sudo apt-get install -y libsoap-lite-perl # automatic installation fails due to missing/not installable dependencies, hence using package from repo sudo cpan o conf build_requires_install_policy yes o conf prerequisites_policy follow o conf commit perl ./Build.PL sudo ./Build installdeps perl ./Build.PL sudo ./Build installdeps perl Build.PL ./Build ./Build test sudo ./Build install If I should test something, let me know, please. Thanks a lot for your help :) -- Kind regards, René
Rene, Thank you for a very clear and useful bug report. I understand the problem, which almost certainly is not a linux-only problem. It will be fixed in the next release. I will make a post to the mailing list when I have checked a fix into github so that you can update your machine. Thanks, B On 11/18/2013 04:13 PM, René Genz wrote:
Hi Bruce, hi Matt,
the other day a colleague encountered a problem.
He measured a ZnO standard. I have the ZnO.fpj project file and can share the data. It is about 1.2 MB in size though. Shall I upload it to a public file hoster or sent it to your email account?
At first I thought this is a problem with my installation steps on Fedora 18 x86_64, but I could reproduce the problem with Ubuntu 12.04 i686. The line numbers match, so I will post only the output from dartemis on Ubuntu. Note: this file was created with the Windows version of Demeter on Windows 7 Enterprise 32bit (running on Fedora 18 x86_64 as VirtualBox 4.2.18 virtual machine). Demeter crashes in the Windows version as well using the steps below.
steps to reproduce: * start dartemis from a terminal
* open project file in dartemis through 'Artemis [EXAFS data analysis]' window: File -- open project
* in the 'Artemis [Plot]' window click on [R] button
* in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window
* wait about 10 seconds; dartemis will crash with the below error message
### Ubuntu 12.04 i686 test@test2:~$ dartemis Attribute (bft_rmax) does not pass the type constraint because: Num is not larger than 0 at accessor Demeter::Data::bft_rmax (defined at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/Data.pm line 406) line 7. Demeter::Data::bft_rmax(Demeter::Data=HASH(0x106540d8), -100000.000) called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 909
Demeter::UI::Artemis::Data::fetch_parameters(Demeter::UI::Artemis::Data=HASH(0x1085c3f4)) called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 662
Demeter::UI::Artemis::Data::Pluck(Demeter::UI::Artemis::Data=HASH(0x1085c3f4), Wx::CommandEvent=SCALAR(0x101c7ff8), "rmax") called at /home/test/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int/Demeter/UI/Artemis/Data.pm line 362
Demeter::UI::Artemis::Data::__ANON__(Demeter::UI::Artemis::Data=HASH(0x1085c3f4), Wx::CommandEvent=SCALAR(0x101c7ff8)) called at /home/test/perl5/bin/dartemis line 39 eval {...} called at /home/test/perl5/bin/dartemis line 39
The installation steps on Ubuntu 12.04 i686 were:
sudo apt-get install -y openssl-server # for my own pleasure
sudo apt-get install -y gcc gfortran libx11-dev libncurses5 libncurses5-dev libpng3 libpng3-dev libgif4 libwxgtk2.8-dev git build-essential gnuplot perl
cd git clone https://github.com/newville/ifeffit.git cd ifeffit sudo ./PGPLOT_install ./configure make sudo make install
cd git clone git://github.com/bruceravel/demeter.git cd demeter
sudo apt-get install -y liblocal-lib-perl sudo apt-get install -y libnet-ssleay-perl sudo apt-get install -y libssl-devl # due to 'SSLeay.xs:153:25: fatal error: openssl/err.h: No such file or directory' at Net::SSLeay sudo apt-get install -y libsoap-lite-perl # automatic installation fails due to missing/not installable dependencies, hence using package from repo
sudo cpan o conf build_requires_install_policy yes o conf prerequisites_policy follow o conf commit
perl ./Build.PL sudo ./Build installdeps
perl ./Build.PL sudo ./Build installdeps
perl Build.PL ./Build ./Build test sudo ./Build install
If I should test something, let me know, please.
Thanks a lot for your help :)
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel
On 11/18/2013 04:13 PM, René Genz wrote:
* start dartemis from a terminal * open project file in dartemis through 'Artemis [EXAFS data analysis]' window: File -- open project * in the 'Artemis [Plot]' window click on [R] button * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window * wait about 10 seconds; dartemis will crash with the below error message
Fixed in github. Thanks for noticing this, René. B -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel
Hi Bruce, thanks a lot for fixing the bug. The issue does not seem to be fully resolved, though. I can reproduce it on Fedora 18 x86_64 and Ubuntu 12.04 i686. This is a minor problem, because entering a value manually in the rmax input field is a workaround. This is how I could reproduce the problem: * open a terminal * open project with command: `dartemis ZnO.fpj` * in the 'Artemis [Plot]' window click on [R] button * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window * wait about 10 seconds; message in status bar of 'Artemis [Data] ZnO' window "Failed to pluck a value for rmax" * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window; dartemis will crash immediately with the exact error message as before Attribute (bft_rmax) does not pass the type constraint because: Num is not larger than 0 at accessor Demeter::Data::bft_rmax (defined at /usr/local/lib64/perl5/Demeter/Data.pm line 406) line 7. Demeter::Data::bft_rmax('Demeter::Data=HASH(0xe5f2328)', -100000.000) called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 909 Demeter::UI::Artemis::Data::fetch_parameters('Demeter::UI::Artemis::Data=HASH(0xe981860)') called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 662 Demeter::UI::Artemis::Data::Pluck('Demeter::UI::Artemis::Data=HASH(0xe981860)', 'Wx::CommandEvent=SCALAR(0xddf5628)', 'rmax') called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 362 Demeter::UI::Artemis::Data::__ANON__('Demeter::UI::Artemis::Data=HASH(0xe981860)', 'Wx::CommandEvent=SCALAR(0xddf5628)') called at /usr/local/bin/dartemis line 39 eval {...} called at /usr/local/bin/dartemis line 39 -- Kind regards, René
Grrr! I thought I had settled that one. I'll put it on the to do list. Thanks, B On 11/24/2013 09:46 AM, René Genz wrote:
Hi Bruce,
thanks a lot for fixing the bug.
The issue does not seem to be fully resolved, though. I can reproduce it on Fedora 18 x86_64 and Ubuntu 12.04 i686. This is a minor problem, because entering a value manually in the rmax input field is a workaround.
This is how I could reproduce the problem: * open a terminal * open project with command: `dartemis ZnO.fpj` * in the 'Artemis [Plot]' window click on [R] button * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window * wait about 10 seconds; message in status bar of 'Artemis [Data] ZnO' window "Failed to pluck a value for rmax" * in 'Artemis [Data] ZnO' window click on the bull's eye sign to the right of rmax window; dartemis will crash immediately with the exact error message as before
Attribute (bft_rmax) does not pass the type constraint because: Num is not larger than 0 at accessor Demeter::Data::bft_rmax (defined at /usr/local/lib64/perl5/Demeter/Data.pm line 406) line 7. Demeter::Data::bft_rmax('Demeter::Data=HASH(0xe5f2328)', -100000.000) called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 909
Demeter::UI::Artemis::Data::fetch_parameters('Demeter::UI::Artemis::Data=HASH(0xe981860)') called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 662
Demeter::UI::Artemis::Data::Pluck('Demeter::UI::Artemis::Data=HASH(0xe981860)', 'Wx::CommandEvent=SCALAR(0xddf5628)', 'rmax') called at /usr/local/lib64/perl5/Demeter/UI/Artemis/Data.pm line 362
Demeter::UI::Artemis::Data::__ANON__('Demeter::UI::Artemis::Data=HASH(0xe981860)', 'Wx::CommandEvent=SCALAR(0xddf5628)') called at /usr/local/bin/dartemis line 39 eval {...} called at /usr/local/bin/dartemis line 39
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel
participants (2)
-
Bruce Ravel
-
René Genz