{"action":"created","issue":{"url":"https://api.github.com/repos/CoolProp/CoolProp/issues/477","labels_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/477/comments","events_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/477/events","html_url":"https://github.com/CoolProp/CoolProp/issues/477","id":58177347,"number":477,"title":"Crash in Julia when invalid temperature range","user":{"login":"JonWel","id":11057909,"avatar_url":"https://avatars.githubusercontent.com/u/11057909?v=3","gravatar_id":"","url":"https://api.github.com/users/JonWel","html_url":"https://github.com/JonWel","followers_url":"https://api.github.com/users/JonWel/followers","following_url":"https://api.github.com/users/JonWel/following{/other_user}","gists_url":"https://api.github.com/users/JonWel/gists{/gist_id}","starred_url":"https://api.github.com/users/JonWel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonWel/subscriptions","organizations_url":"https://api.github.com/users/JonWel/orgs","repos_url":"https://api.github.com/users/JonWel/repos","events_url":"https://api.github.com/users/JonWel/events{/privacy}","received_events_url":"https://api.github.com/users/JonWel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-19T07:50:08Z","updated_at":"2015-02-28T05:22:21Z","closed_at":null,"body":"When I execute in Python, I have a nice message explaining the problem while with the Julia wrapper it crash:\r\n\r\nPython:\r\n\r\n    julia> using PyCall\r\n\r\n    julia> @pyimport CoolProp.CoolProp as CoolProp\r\n\r\n    julia> CoolProp.PropsSI(\"S\", \"T\", 700., \"Q\", 0., \"Water\")\r\n    ERROR: PyError (:PyObject_Call) <type 'exceptions.ValueError'>\r\n    ValueError('Temperature to QT_flash [700 K] must be in range [273.16 K, 647.096 K] : PropsSI(\"S\",\"T\",700,\"Q\",0,\"Water\")',)\r\n      File \"CoolProp.pyx\", line 204, in CoolProp.CoolProp.PropsSI (CoolProp/CoolProp.cpp:15306)\r\n      File \"CoolProp.pyx\", line 278, in CoolProp.CoolProp.PropsSI (CoolProp/CoolProp.cpp:15109)\r\n      File \"CoolProp.pyx\", line 173, in CoolProp.CoolProp.__Props_err2 (CoolProp/CoolProp.cpp:13679)\r\n\r\n     in pyerr_check at /home/jonwel/.julia/v0.3/PyCall/src/exception.jl:58\r\n     in pycall at /home/jonwel/.julia/v0.3/PyCall/src/PyCall.jl:91\r\n     in fn at /home/jonwel/.julia/v0.3/PyCall/src/conversions.jl:181\r\n\r\n    julia>\r\n\r\nJulia Wrapper:\r\n\r\n    julia> import CoolProp\r\n\r\n    julia> CoolProp.PropsSI(\"S\", \"T\", 700., \"Q\", 0., \"Water\")\r\n\r\n    signal (6): Abandon\r\n    gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)\r\n    abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)\r\n    _Unwind_Resume at /lib/x86_64-linux-gnu/libgcc_s.so.1 (unknown line)\r\n    _ZN8CoolProp16_PropsSI_outputsERNSt3tr110shared_ptrINS_13AbstractStateEEESt6vectorINS_16output_parameterESaIS6_EENS_11input_pairsERKS5_IdSaIdEESD_RS5_ISB_SaISB_EE at /usr/bin/../lib/x86_64-linux-gnu/julia/CoolProp.so (unknown line)\r\n    _ZN8CoolProp13_PropsSImultiERKSt6vectorISsSaISsEERKSsRKS0_IdSaIdEES6_SA_S6_S4_SA_RS0_IS8_SaIS8_EE at /usr/bin/../lib/x86_64-linux-gnu/julia/CoolProp.so (unknown line)\r\n    _ZN8CoolProp7PropsSIERKSsS1_dS1_dS1_ at /usr/bin/../lib/x86_64-linux-gnu/julia/CoolProp.so (unknown line)\r\n    PropsSI at /usr/bin/../lib/x86_64-linux-gnu/julia/CoolProp.so (unknown line)\r\n    PropsSI at /home/jonwel/.julia/v0.3/CoolProp/src/CoolProp.jl:14\r\n    Abandon (core dumped)\r\n    jonwel@PC:~$ \r\n\r\nDone under Ubuntu 14.10 64bit with last CoolProp library compiled from github.\r\nPreventing this crash would allow to add error handling with the Julia wrapper."},"comment":{"url":"https://api.github.com/repos/CoolProp/CoolProp/issues/comments/76511566","html_url":"https://github.com/CoolProp/CoolProp/issues/477#issuecomment-76511566","issue_url":"https://api.github.com/repos/CoolProp/CoolProp/issues/477","id":76511566,"user":{"login":"ibell","id":1859947,"avatar_url":"https://avatars.githubusercontent.com/u/1859947?v=3","gravatar_id":"","url":"https://api.github.com/users/ibell","html_url":"https://github.com/ibell","followers_url":"https://api.github.com/users/ibell/followers","following_url":"https://api.github.com/users/ibell/following{/other_user}","gists_url":"https://api.github.com/users/ibell/gists{/gist_id}","starred_url":"https://api.github.com/users/ibell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibell/subscriptions","organizations_url":"https://api.github.com/users/ibell/orgs","repos_url":"https://api.github.com/users/ibell/repos","events_url":"https://api.github.com/users/ibell/events{/privacy}","received_events_url":"https://api.github.com/users/ibell/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T05:22:21Z","updated_at":"2015-02-28T05:22:21Z","body":"Confirmed bug in Julia ppa; Resolution is indeterminate"}}