ParsecSoda icon indicating copy to clipboard operation
ParsecSoda copied to clipboard

[Bug] GamepadsWidget crash on launch

Open v6ooo opened this issue 4 years ago • 1 comments

https://github.com/FlavioFS/ParsecSoda/blob/2d00d9851399ca1e6797279d649b6b105463f8d2/ParsecSoda/Widgets/GamepadsWidget.cpp#L177

Result: Randomly crashes on launch of app Reproduce: Keep launching until it crashes. Usually around 5 tries

Error: Unhandled exception at 0x00007FFE4B5C4F99 in ParsecSoda.exe: Microsoft C++ exception: std::length_error at memory location 0x0000004F078FB520.

-		gi	{owner={guest={name=<Error reading characters of string.> userID=3722304989 id=3722304989 ...} deviceID=...} ...}	Gamepad &
-		owner	{guest={name=<Error reading characters of string.> userID=3722304989 id=3722304989 ...} deviceID=3722304989 ...}	GuestDevice
-		guest	{name=<Error reading characters of string.> userID=3722304989 id=3722304989 ...}	Guest
-		name	<Error reading characters of string.>	std::string
		[size]	15987178197214944733	unsigned __int64
		[capacity]	15987178197214944733	unsigned __int64
+		[allocator]	allocator	std::_Compressed_pair<std::allocator<char>,std::_String_val<std::_Simple_types<char>>,1>
		[0]	<Unable to read memory>	char
		[1]	<Unable to read memory>	char
		[2]	<Unable to read memory>	char
		[3]	<Unable to read memory>	char
		...
+		[More]		
+		[Raw View]	{_Mypair=allocator }	std::string
		userID	3722304989	unsigned int
		id	3722304989	unsigned int
		status	INVALID | -572662308 (-572662307)	Guest::Status
		deviceID	3722304989	unsigned int
		isKeyboard	true (221)	bool
		isPuppet	true (221)	bool

v6ooo avatar Nov 12 '21 10:11 v6ooo

Probably another racing condition. UI in C++ is kinda... ooff. Since everything has to be super thread-safe.

FlavioFS avatar Dec 12 '21 03:12 FlavioFS