TeamShinkansen / Hakchi2-CE

Tool that allows you to add more games to your NES/SNES Classic Mini
https://discord.gg/UUvqsAR
GNU General Public License v3.0
1.21k stars 111 forks source link

Crash when turn on the SNES mini on Linux #241

Open Pollito001 opened 5 years ago

Pollito001 commented 5 years ago

Hackchi open normal but when i plug the SNES and turn it on, In couple of seconds hackchi crash. PD: I already install libusb and still crashing.

DanTheMan827 commented 5 years ago

More information is needed

It may be possible that you just need to update your udev rules so that non-root users can open the device.

See https://askubuntu.com/a/980887

Pollito001 commented 5 years ago

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at com.clusterrr.clovershell.ClovershellConnection.mainThreadLoop () [0x002a3] in <21f2937bb76244b99b8993de15d3543d>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2db172fd6cc04cc789459631328c1dd5>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at com.clusterrr.clovershell.ClovershellConnection.mainThreadLoop () [0x002a3] in <21f2937bb76244b99b8993de15d3543d>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2db172fd6cc04cc789459631328c1dd5>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2db172fd6cc04cc789459631328c1dd5>:0

Pollito001 commented 5 years ago

Any suggestion? @DanTheMan827

MattPicDev commented 4 years ago

This happens on Windows as well, though often the reverse (SSHClientWrapper getting exceptions). There is a timing issue when the SNES classic is connected when Hakchi starts, between the initialization of the ClovershellConnection and the SSHClientWrapper. Hakchi disables all other ISystemShells when one starts up, but if the one being disabled was still in the middle of enabling (i.e. MDnsListener takes a while...), then you'll get a series of exceptions like this. It could happen in either order.