Failure to load h5mma results in hanging during package load
When launching h5mma from Mathematica, a failure to load the executable (e.g. a segfault or missing dynamic library) manifests itself as a hang in the frontend. This can be interrupted, but an error message would be much better.
If we cannot detect the failure somehow (and this might be a limitation of mathlink) we can use TimeConstrained to time out after 10s or so. Better would be to detect the error message somehow and report it to the user.
Comments (3)
-
-
reporter Looks good, though we might want to change the error message suggesting that they compile it. We could have a list of possible reasons and their fixes, but isn't compiling it quite complicated?
-
- changed status to resolved
This has been fixed in 5d1f21fbb413fec1334f478661c150270db79961 and 48bc129b546931d971066caee9e3b96169c88abb.
- Log in to comment
Usually when the binary fails to load, Install[...] returns $Failed and we report an error in such a case. It looks like there are cases where Install never returns. This seems to happen when there is a binary there, but it's not working. I think your TimeConstrained suggestion is probably the best option in this case. How about the following patch: