mms icon indicating copy to clipboard operation
mms copied to clipboard

Running mms-cpp raises Uknown Error

Open FallenDeity opened this issue 1 year ago • 11 comments

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

mms 12-05-2023 15_29_20

Note
No issue when running program manually

FallenDeity avatar May 12 '23 09:05 FallenDeity

Thanks for submitting. To clarify, are you still hitting this issue?

mackorone avatar May 16 '23 07:05 mackorone

yeah works with python I tested it out issue arises when I use c++

FallenDeity avatar May 16 '23 18:05 FallenDeity

@FallenDeity and just to confirm: does your program work when invoked outside of the simulator?

mackorone avatar May 22 '23 04:05 mackorone

yeah its cloned from your repository mms-cpp i haven't touched a thing

FallenDeity avatar May 22 '23 15:05 FallenDeity

@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
...

mackorone avatar May 22 '23 17:05 mackorone

mms-cpp 24-05-2023 14_04_53 Here it is

FallenDeity avatar May 24 '23 08:05 FallenDeity

So weird... Ok, I'll have to dig into this a little more. Thanks for reporting!

mackorone avatar May 24 '23 18:05 mackorone

Googling the error brought up the following: https://stackoverflow.com/a/61080988

So there might be some CPU arch mismatch.

hardliner66 avatar Jun 08 '23 20:06 hardliner66

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.)

mackorone avatar Jun 13 '23 05:06 mackorone

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 Triyan Mukherjee 13-06-2023 14_23_38 mms 13-06-2023 14_23_31

FallenDeity avatar Jun 13 '23 08:06 FallenDeity

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!

mackorone avatar Jun 13 '23 17:06 mackorone