LabSid-USP/RUBEMHydrological

External executable not running correctly from QGIS Python plugin

Closed this issue · 0 comments

Describe the bug

  • When trying to run an external executable rubem.exe from a QGIS Python plugin, the process starts but doesn't proceed as expected. The process is invoked by a QThread object, and the expected behavior is that it should run to completion and generate output files. However, the process starts and immediately stops without any error message or output files.

To Reproduce

Steps to reproduce the behavior:

  1. Install the QGIS plugin.
  2. Open QGIS and select the plugin from the plugin menu.
  3. Set up the required parameters for the plugin and click on the 'Run' button.
  4. Observe that the process starts but stops without any progress or output.

Expected behavior

  • The expected behavior is that the rubem.exe process should run to completion when invoked from the QGIS plugin. It should process the input data, perform the necessary computations, and generate output files in the designated output directory.

Desktop (please complete the following information):

Additional context

  • The issue seems to be specifically related to running the external executable from the QGIS Python plugin. When the executable is run directly from the command line, it works as expected. Furthermore, the issue persists even when the executable is run with the correct parameters and input data. We've tried to debug the issue by logging messages from the QProcess object, but no errors or warnings are reported.

Acknowledgements

We would like to extend our sincere gratitude to the users who helped us identify this issue and verify the solution. Your collaboration was instrumental in helping us improve the responsiveness and usability of our software.

In particular, we would like to thank (usernames):

Your detailed bug reports and patience during the debugging process were invaluable. We appreciate your continued support and contributions to the improvement of our project. Thank you for helping us make our software better!