[GH-ISSUE #153] Client crashes when Stop Listening on server #71

Closed
opened 2026-02-27 15:48:36 +03:00 by kerem · 20 comments
Owner

Originally created by @DragonzMaster on GitHub (May 19, 2015).
Original GitHub issue: https://github.com/quasar/Quasar/issues/153

As shown in the title
When the client is running and i stop listening (Server) the client crash
Client.exe has Stopped Working
So anyone else faces this problem ?

Originally created by @DragonzMaster on GitHub (May 19, 2015). Original GitHub issue: https://github.com/quasar/Quasar/issues/153 As shown in the title When the client is running and i stop listening (Server) the client crash Client.exe has Stopped Working So anyone else faces this problem ?
kerem 2026-02-27 15:48:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MaxXor commented on GitHub (May 19, 2015):

Working fine for me here. I can stop and start listening and the client connects again.

<!-- gh-comment-id:103683054 --> @MaxXor commented on GitHub (May 19, 2015): Working fine for me here. I can stop and start listening and the client connects again.
Author
Owner

@DragonzMaster commented on GitHub (May 19, 2015):

hmmmm it is really strange
i tried again and the client still crashes

<!-- gh-comment-id:103684120 --> @DragonzMaster commented on GitHub (May 19, 2015): hmmmm it is really strange i tried again and the client still crashes
Author
Owner

@ghost commented on GitHub (May 19, 2015):

Yes it is doing it for me as well. I will investigate. This is with the most recent master-branch

<!-- gh-comment-id:103685446 --> @ghost commented on GitHub (May 19, 2015): Yes it is doing it for me as well. I will investigate. This is with the most recent master-branch
Author
Owner

@MaxXor commented on GitHub (May 19, 2015):

Start the client in debug mode and the Server normally. Then reproduce the crash and the Debugger will stop at the exception. Plesse tell me as much as Visual Studio tells you, like name, line number. :)

<!-- gh-comment-id:103685964 --> @MaxXor commented on GitHub (May 19, 2015): Start the client in debug mode and the Server normally. Then reproduce the crash and the Debugger will stop at the exception. Plesse tell me as much as Visual Studio tells you, like name, line number. :)
Author
Owner

@ghost commented on GitHub (May 19, 2015):

@MaxXor, I first started the client normally by building it, stopping the listen server the client crashed. It doesn't crash in debug however

I will look at the dump and find the exception thrown

<!-- gh-comment-id:103686162 --> @ghost commented on GitHub (May 19, 2015): @MaxXor, I first started the client normally by building it, stopping the listen server the client crashed. It doesn't crash in debug however I will look at the dump and find the exception thrown
Author
Owner

@DragonzMaster commented on GitHub (May 19, 2015):

no in the debug mode the client works smoothly and never crash @MaxXor
it seems that the problem with release mode 😥

<!-- gh-comment-id:103686280 --> @DragonzMaster commented on GitHub (May 19, 2015): no in the debug mode the client works smoothly and never crash @MaxXor it seems that the problem with release mode :disappointed_relieved:
Author
Owner

@ghost commented on GitHub (May 19, 2015):

It is throwing a System.TypeLoadException. Probably something in the Servers renamer class

<!-- gh-comment-id:103686976 --> @ghost commented on GitHub (May 19, 2015): It is throwing a System.TypeLoadException. Probably something in the Servers renamer class
Author
Owner

@DragonzMaster commented on GitHub (May 19, 2015):

i remember that the renamer caused a problem with the previous Keylogger also
so can it be the problem like what @d3agle said ??

<!-- gh-comment-id:103688705 --> @DragonzMaster commented on GitHub (May 19, 2015): i remember that the renamer caused a problem with the previous Keylogger also so can it be the problem like what @d3agle said ??
Author
Owner

@ghost commented on GitHub (May 19, 2015):

This is the error message I'm getting in Visual studio 2015:

System.TypeLoadException was unhandled
Message: An unhandled exception of type 'System.TypeLoadException' occurred in Client-built.exe
Additional information: Method 'Dispose' in type '䬖從晃쯓ⰷ샡躥䇆뎿﷤㕵ด瓐㙏䈁៫䢫쯻' from assembly 'Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

<!-- gh-comment-id:103689846 --> @ghost commented on GitHub (May 19, 2015): This is the error message I'm getting in Visual studio 2015: System.TypeLoadException was unhandled Message: An unhandled exception of type 'System.TypeLoadException' occurred in Client-built.exe Additional information: Method 'Dispose' in type '䬖從晃쯓ⰷ샡躥䇆뎿﷤㕵ด瓐㙏䈁៫䢫쯻' from assembly 'Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Author
Owner

@ghost commented on GitHub (May 19, 2015):

Is there any way to exclude obfuscating types that implement the IDisposable interface?

Edit: I think i fixed it. Client no longer crashes. I will pull request, please let me know if this is acceptable way of fixing this.

<!-- gh-comment-id:103692469 --> @ghost commented on GitHub (May 19, 2015): Is there any way to exclude obfuscating types that implement the IDisposable interface? Edit: I think i fixed it. Client no longer crashes. I will pull request, please let me know if this is acceptable way of fixing this.
Author
Owner

@ghost commented on GitHub (May 19, 2015):

Sent a pull request #154 for this fix

<!-- gh-comment-id:103693862 --> @ghost commented on GitHub (May 19, 2015): Sent a pull request #154 for this fix
Author
Owner

@DragonzMaster commented on GitHub (May 19, 2015):

i hope it fixed the problem @d3agle

<!-- gh-comment-id:103695446 --> @DragonzMaster commented on GitHub (May 19, 2015): i hope it fixed the problem @d3agle
Author
Owner

@DragonzMaster commented on GitHub (May 19, 2015):

@MaxXor please can we make the renamer optional ??
EDIT : When Uninstalling the client the same problem happens and the client crashes before it is deleted

<!-- gh-comment-id:103696352 --> @DragonzMaster commented on GitHub (May 19, 2015): @MaxXor please can we make the renamer optional ?? EDIT : When Uninstalling the client the same problem happens and the client crashes before it is deleted
Author
Owner

@yankejustin commented on GitHub (May 19, 2015):

@DragonzMaster To clarify, do you mean that it crashes before deletion and does not create the batch file that deletes itself?

<!-- gh-comment-id:103699781 --> @yankejustin commented on GitHub (May 19, 2015): @DragonzMaster To clarify, do you mean that it crashes before deletion and does not create the batch file that deletes itself?
Author
Owner

@DragonzMaster commented on GitHub (May 20, 2015):

no it crashes and ("client.exe has stopped working) appears then it is deleted @yankejustin

<!-- gh-comment-id:103703532 --> @DragonzMaster commented on GitHub (May 20, 2015): no it crashes and ("client.exe has stopped working) appears then it is deleted @yankejustin
Author
Owner

@yankejustin commented on GitHub (May 20, 2015):

@DragonzMaster Try it again and see if it still does that. :)

<!-- gh-comment-id:103707369 --> @yankejustin commented on GitHub (May 20, 2015): @DragonzMaster Try it again and see if it still does that. :)
Author
Owner

@DragonzMaster commented on GitHub (May 20, 2015):

It seems that both of the 2 fixes work
not one of them only as i had to fix both of the renemer and the shell to get the problem fixed
it took 15-20 seconds to uninstall
EDIT : _d3agle_ fix solves the 2 issues (uninstalling & stop listening)

<!-- gh-comment-id:103719447 --> @DragonzMaster commented on GitHub (May 20, 2015): It seems that both of the 2 fixes work ~~not one of them only as i had to fix both of the renemer and the shell to get the problem fixed~~ it took 15-20 seconds to uninstall EDIT : **_d3agle**_ fix solves the 2 issues (uninstalling & stop listening)
Author
Owner

@yankejustin commented on GitHub (May 20, 2015):

So both fixes fix both of your issues?

<!-- gh-comment-id:103726751 --> @yankejustin commented on GitHub (May 20, 2015): So both fixes fix both of your issues?
Author
Owner

@DragonzMaster commented on GitHub (May 20, 2015):

yes 😃
I tried again with @d3agle fix only and it seems to fix both issues (really sorry i didn't notice that the first time i tested the client)
and i think the try-catch block you have made won't hurt 😆 @yankejustin
thanks for both of you ... good work

<!-- gh-comment-id:103729792 --> @DragonzMaster commented on GitHub (May 20, 2015): yes :smiley: I tried again with @d3agle fix only and it seems to fix both issues (really sorry i didn't notice that the first time i tested the client) and i think the try-catch block you have made won't hurt :laughing: @yankejustin thanks for both of you ... good work
Author
Owner

@yankejustin commented on GitHub (May 20, 2015):

Yeah you're right. ;)
If the process was already terminating the client would discontinue working as described above. It would not even be able to uninstall correctly. 🍗

<!-- gh-comment-id:103733515 --> @yankejustin commented on GitHub (May 20, 2015): Yeah you're right. ;) If the process was already terminating the client would discontinue working as described above. It would not even be able to uninstall correctly. :poultry_leg:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Quasar#71
No description provided.