mms
mms copied to clipboard
Running mms-cpp raises Uknown Error
Steps to reproduce
- [x] Clone this repository https://github.com/mackorone/mms-cpp
- [x] Filled same details as in image
- [x] Build Worked
- [x] Error when running
Process failed to start: Unknown error 0x000000c1.
Device Info
Processor 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
Installed RAM 16.0 GB (15.8 GB usable)
System type 64-bit operating system, x64-based processor
Note
No issue when running program manually
Thanks for submitting. To clarify, are you still hitting this issue?
yeah works with python I tested it out issue arises when I use c++
@FallenDeity and just to confirm: does your program work when invoked outside of the simulator?
yeah its cloned from your repository mms-cpp i haven't touched a thing
@FallenDeity can you send me a screenshot of you running the mms-cpp
command from the command line, outside the context of the simulator? I want to see that it successfully starts, and that you can send it responses by writing to stdin. Something like this:
$ ./a.out
Running...
setColor 0 0 G
setText 0 0 abc
wallLeft
true # <--- I entered this
wallFront
false # <--- I entered this
moveForward
...
Here it is
So weird... Ok, I'll have to dig into this a little more. Thanks for reporting!
Googling the error brought up the following: https://stackoverflow.com/a/61080988
So there might be some CPU arch mismatch.
Good find, @hardliner66. Based on that link and this one, I'm tempted to think that there's a compiler compatibility problem. Namely, the g++
that's used to compile the program from within the simulator is somehow different from the compiler used outside of the simulator. Perhaps you can quickly verify that the binaries are the same by running which g++
both inside and outside of the simulator? (I.e., set your build command to which g++
and see what happens.)
Dosn't seem to be the case I ran where g++
equivalent of which for windows both point to same place my mingw64 installation version 13.1.0
if that matters
Ok, so that's ruled out.
At this point, my recommendation would be to build mms
from source and keep playing around the command/arguments to see if you can get it to run. Here are some more threads that might be helpful:
- https://stackoverflow.com/questions/73052403/qprocess-is-not-running
- https://stackoverflow.com/questions/185042/how-do-i-resolve-1-is-not-a-valid-win32-application
- https://www.qtcentre.org/threads/69490-quot-Process-failed-to-start-quot-Error-when-using-QProcess-to-run-ie4uinit-exe
Let us know if you figure it out!