NinevaStudios / mqtt-utilities-unreal

MqttUtilities is a plugin for Unreal Engine intended to expose MQTT client functionality to blueprints
Eclipse Public License 1.0
157 stars 60 forks source link

Program crash when running on no UE editor PC after package. #22

Open leo4933 opened 2 years ago

leo4933 commented 2 years ago

Same as the title. I tried install vc++2010 to 2019, but it doesn't work.

[2022.06.27-01.59.27:636][226]LogThreadingWindows: Error: Runnable thread MQTT crashed. [2022.06.27-01.59.27:636][226]LogWindows: Error: === Critical error: === [2022.06.27-01.59.27:636][226]LogWindows: Error: [2022.06.27-01.59.27:636][226]LogWindows: Error: Fatal error! [2022.06.27-01.59.27:636][226]LogWindows: Error: [2022.06.27-01.59.27:636][226]LogWindows: Error: Unhandled Exception: 0xc06d007e [2022.06.27-01.59.27:636][226]LogWindows: Error: [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x000007fefd75a49d KERNELBASE.dll!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x00000001475afa4e AirsimProj-Win64-DebugGam!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x0000000146822e5e AirsimProj-Win64-DebugGam!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x0000000140aaa285 AirsimProj-Win64-DebugGam!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x000000014195a73f AirsimProj-Win64-DebugGam!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x0000000141950c50 AirsimProj-Win64-DebugGam!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x000000007760652d kernel32.dll!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [Callstack] 0x000000007773c521 ntdll.dll!UnknownFunction [] [2022.06.27-01.59.27:636][226]LogWindows: Error: [2022.06.27-01.59.27:636][226]LogWindows: Error: Crash in runnable thread MQTT [2022.06.27-01.59.27:650][227]LogExit: Executing StaticShutdownAfterError [2022.06.27-01.59.27:650][227]LogWindows: FPlatformMisc::RequestExit(1) [2022.06.27-01.59.27:650][227]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3) [2022.06.27-01.59.27:650][227]LogCore: Engine exit requested (reason: Win RequestExit)

alonezhby commented 2 years ago

Hi, did you fixed it? I have same problem....

leo4933 commented 2 years ago

@alonezhby not yet~ i hope the developer has the solution to save my project : )

Connor-McCloskey commented 2 years ago

Hi, was this ever solved? Encountering something eerily similar in my project. Wondering if it's a Windows 11-specific issue?

yangjiahaoTemp commented 1 year ago

image

U3DS commented 1 year ago

I also have this problem. Is there a solution?

grantwilk commented 1 year ago

For anyone else still having this issue, it is because the Mosquitto DLLs (mosquitto.dll and mosquittopp.dll) packaged with the plugin were built in the DEBUG profile, which means they are dependent on VCRUNTIME140D.dll, which is only accessible when the system has the MSVC toolchain installed on it.

If you want to use this plugin on a system without the MSVC toolchain installed, you'll have to replace the Mosquitto DLLs with ones that are built in the RELEASE profile. These are not dependent on the debug DLLs and will work on any Windows system with C++ runtimes installed (which is required by Unreal Engine anyway).

ahsan4313 commented 10 months ago

Any update? I have tried release dlls as well

Installed VS as well but of no use

grantwilk commented 10 months ago

@ahsan4313 Did you rebuild Mosquitto from scratch yourself to get the release DLLs for mosquitto.dll and mosquittopp.dll? If not, I would suggest doing that.

In the case you can't get that working, I've attached my DLLs here. Downloads will expire after 180 days though. mosquitto.dll: https://paste.c-net.org/HallieRetiring mosquittopp.dll: https://paste.c-net.org/BondsFactory

ahsan4313 commented 10 months ago

Sure. Thank you very much for sending me yours. Let me try these.

Can I get your code how you have build from start that will be a great help for me and how I can make this work for quest APK as well any help @grantwilk

ahsan4313 commented 10 months ago

Didn't work for me. the above dlls you shared

MonsterGuo commented 10 months ago

Android third party files end with “.so” not ".dll"

ahsan4313 commented 10 months ago

for .dll i am talking about its not working in the system where unreal editor is not installed.

And yes for quest 2 apk, i have only .apk after packaging, i have installed in quest 2 but its not working.

ahsan4313 commented 10 months ago

where should i place .so file? i have found in binaries of the project help me out @MonsterGuo