Fork me on GitHub
Wow client freezes my machine while I'm debugging cMangos
Post: #1

Hi guys.

I'm learning / studying cMangos code so that I can ultimately participate in the project


Here is my issue :

When I simply run cMangos ( either mangosd.exe from the "run" folder or "Debug / Start Debugging" from Vision Studio ), it works fine. No issues with the lvl 5 Hunter walking around and killing boars in the Alvimar area. When I enable breakpoints, so that I can step through the code, it works for a while as well, but eventually crashes.

To recreate the issue, I :

1. Open "win/mangosdVC140.sln" in Visual Studio after starting apache and mySql thru XAMPP

2. Launch "run/realmd.exe"

3. Debug => Start Debugging "win/mangosdVC140.sln".

4. Launch wow.exe. Login. Walk around for a while w/ my lvl 5 dwarf hunter.

5. In the .sln in Visual Studio, go into WorldSession::ExecuteOpcode method and place a breakpoint on the first statement :

if (_player)
_player->SetCanDelayTeleport(true);


6. Alt + Tab to Wow.exe, this causes above breakpoint to be hit. I start stepping over/into the code, looking at the call stack, autos/locals window, etc…Periodically, I Alt+Tab to wow.exe to see how / if client is effected by the code I am stepping over. After several of these Alt+Tabs, client freezes, and so does my machine. I can't Alt+Tab out of the client, I can't do "Cntl+Alt+Delete" to shut the client down, etc. I can't even move my mouse to properly restart my machine. I end up having to power my computer off, then back on. I have not detected any pattern as to it crashing at a specific spot in the code…or even how many "Alt+Tabs" back to the client it takes to crash. Last time it was only two Alt+Tabs, but there were times it was more like 5 or 6.

Really appreciate if anyone can shed some light here: what is happening, and how I can study/debug the code w/out it constantly crashing my machine.

Thank you!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Shocked Confused about Mangos and CMangos Mightylink 6 933 01-24-2017, 08:01 AM
Last Post: Mightylink
Information Your input for a new CMaNGOS forum! Beerfish 22 2,715 01-23-2017, 06:09 PM
Last Post: Castro
  [proposal] Project cmangos-bot cleanup Wingblade 2 652 11-22-2016, 11:31 AM
Last Post: HanFox
  Determining NPC Movement and Position in Client Kazadoom 1 482 11-07-2016, 07:16 AM
Last Post: Kazadoom
  [Crash] cmangos-tbc latest revision Xandrah 2 1,304 04-27-2016, 08:06 AM
Last Post: Xandrah
  How can be people be of assistance to CMaNGOS? Beerfish 1 1,685 09-16-2015, 07:49 AM
Last Post: Castro
  RefManager class in cmangos code magiceye 0 876 08-12-2015, 09:31 AM
Last Post: magiceye
  CMangos Really Is the Best Mightylink 2 1,676 08-04-2015, 10:26 PM
Last Post: Mightylink
  CMaNGOS WOTLK cyberghoser1 6 3,597 07-03-2015, 02:47 PM
Last Post: Mightylink
  Core - Client problem grz3s 11 6,824 06-09-2015, 02:22 PM
Last Post: shiendra

Forum Jump:


Users browsing this thread: 1 Guest(s)

Continued MaNGOS | Return to Top | | Lite (Archive) Mode | RSS Syndication