MAJigsaw77 / hxdiscord_rpc

Haxe/hxcpp @:native bindings for Discord RPC.
https://lib.haxe.org/p/hxdiscord_rpc
MIT License
21 stars 9 forks source link

? #4

Closed 2JENO closed 6 months ago

2JENO commented 6 months ago

Assertion failed: bytesToRead == bytesRead, file C:/HaxeToolkit/haxe/lib/hxdiscord_rpc/git/project/discord-rpc/src/connection_win.cpp, line 116

MAJigsaw77 commented 6 months ago

This issue is related to discord rpc itself but it might be that the function are updated too frequently.

2JENO commented 6 months ago

This issue is related to discord rpc itself but it might be that the function are updated too frequently.

but still crash anytime

MAJigsaw77 commented 6 months ago

This issue is related to discord rpc itself but it might be that the function are updated too frequently.

but still crash anytime

Assuming that you are using the sample, replace Sys.sleep(0.5); to Sys.sleep(2);.

MAJigsaw77 commented 6 months ago

So the functions will not update that frequency anymore.

2JENO commented 6 months ago

This issue is related to discord rpc itself but it might be that the function are updated too frequently.

but still crash anytime

Assuming that you are using the sample, replace Sys.sleep(0.5); to Sys.sleep(2);.

hmm im from fnf psych engine, and i never see Sys.sleep code

MAJigsaw77 commented 6 months ago

This issue is related to discord rpc itself but it might be that the function are updated too frequently.

but still crash anytime

Assuming that you are using the sample, replace Sys.sleep(0.5); to Sys.sleep(2);.

hmm im from fnf psych engine, and i never see Sys.sleep code

https://github.com/ShadowMario/FNF-PsychEngine/blob/d64912e57120e27dc41304deae48097b6c1355d1/source/backend/Discord.hx#L76

2JENO commented 6 months ago

oh sorry lol

2JENO commented 6 months ago

still crash,,,