Author Topic: [fixed] r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18  (Read 11514 times)

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
may be its all the same, my personal "niggybug" on windows.

its this "ZwGetContextThread!ntdll (null)(0) +18" again. This time the headless (urg) running 3.7.2 rev 4001 died somehow in the final of a long big 4 player game.

Errorlog
Quote
[2013-01-10 23:20:01] Runtime Error information:
======================================================
Unknown error!
Stack Trace:
00000000 00000000 00000000 d182862d ZwGetContextThread!ntdll (null)(0) +18
00000000 00000000 00000000 d182862d ZwGetContextThread!ntdll (null)(0) +18

everything was fine (may be controller diconnected, because it was the final undertaking on the screen), and suddenly my windows client (other machine but running win7 64 3.7.2. r4001 too) displayed:
"server disconnected"

screen of server: http://megaglest.pzt.me/4i3v

logs of server were destroyed by server restart through batch as I closed the "Megaglest.exe funktionoiert nicht mehr" - Window. So exit-option of headless-mode was still alive, although windows reportet died application.

shall we put all this "ZwGetContextThread!ntdll (null)(0) +18" on windows in one thread or is this a very common errormessage?

yes, i will try 4005

Greets
« Last Edit: 11 February 2013, 19:07:02 by softcoder »

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
megaglest v3.7.2-dev
Compiled using: VC++: 1600 on: Jan 11 2013 05:33:05 platform: Windows endianness : little SVN: [Rev: 4006] - using STREFLOP [SSE] - [no-denormals]

did the same (?) again today. This time i wasnt in there - but this time i have logs and console-output at: http://www.fastshare.org/download/debug1.zip

Greets

[ediit: forget headless log, crash seem to happen early in game:]

=========================================
Headless Server Current Game information:
=========================================
Network connection for index: 1
------------------------------
Connected: 1
Handshake received: 1
Connected at: 2013-01-11 19:38:00
Connection duration: 0 hours 1 minutes 0 seconds.
Player Index: 1
IP Address: 201.8.172.63
Player name: higo
Language: portuguese
Game Version: v3.7.1-VC++: 1600-Rev: 3948
Session id: 18014
Socket id: 416
Total Slot Count: 1
=========================================
« Last Edit: 11 January 2013, 19:09:16 by nig »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Please try svn rev#: 4012 to see if we get better stack traces for the windows build.

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
huuh 4034 did it again on win7 64.

Iwas playing a scenario all alone...long...  near the end of the game there it is again: error message and the offer to quit. No collapse, no freeze.

logs and screens: http://www.fastshare.org/download/debug4.zip

Greets

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
huuh 4034 did it again on win7 64.

Iwas playing a scenario all alone...long...  near the end of the game there it is again: error message and the offer to quit. No collapse, no freeze.

logs and screens: http://www.fastshare.org/download/debug4.zip

Greets
Can you please not use that site to host your downloads? It prohibits downloading with an adblocker enabled, which is a complete no go for me. Try MediaFire instead.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #5 on: 18 January 2013, 09:52:30 »
Mediafire requires an registration with valid email-adress and declares to be ad-supported. Thats an nogo for me. may be i find another one.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #6 on: 18 January 2013, 16:41:27 »
Mediafire requires an registration with valid email-adress and declares to be ad-supported. Thats an nogo for me. may be i find another one.
Let's be honest here, if it's a free host, it's probably ad supported. Google Search? Youtube? Facebook? Ads. The fact it needs an email sign-in is a bit unfortunate (since it didn't always need one), but on the plus side, that makes it easy to manage your files. You could alternatively try using Google Drive or Dropbox to share files (set it public and copy the public link). You'll still need an account, though. I'm not really familiar with any hosts that aren't evil and don't require an account.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #7 on: 19 January 2013, 02:56:33 »
now we are complete OT again.

Quote
Google Search? Youtube? Facebook?
You are very familiar with the most evil hosts.

Ive got no prblems with Ads. I am not using an Ad-Blocker. Thats you! If Ads are okay, that system can only work if the users dont betray the hosters about the views and clicks on ads.

Internet should be usable without borders, should respect privacy and should be allowed to provide services for free, for share and for fun.
All this is in danger to disappear.

lets keep internet free for everyone, no matter who you are. Registration is the first border . Dont  build borders in the net. Weve got enough of them in the real world.

Greets

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #8 on: 20 January 2013, 22:02:47 »
4036 on Win7 64 today. I hosted a game and it broke with fatal error [main] after about half an hour or so.
game broke immediatly after it reported an frame synchronisation error for one player (see screens). Sorry, no debug.log.

network, console and screens...:
http://www.datafilehost.com/download-b69b59ce.html

Greets

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #9 on: 23 January 2013, 11:08:14 »
r4040 did it again.

logs, screen and console at http://www.datafilehost.com/download-2075b3fd.html

greets

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #10 on: 23 January 2013, 14:52:12 »
Try 4041

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #11 on: 23 January 2013, 22:23:38 »
4040 did it reproducable on two different machines, playing scenario Anarchy.

But: I had today several long network games hosted on headless linux 371 without any error.

Greets

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #12 on: 24 January 2013, 12:54:40 »
may be interesting:

the error in 4040 is reproducable : Just start scenario "Anarchy" and do completely nothing. After 15 min the error appears.
Debug is off.
Funny: If I change the tileset in "Anarchy.xml" to winter, everything is fine. An overflow from blocked workers or just an issue with openGL?
If I change back to "winter-forest" error appears again.

greets

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4001, Win7-64: Fails with ZwGetContextThread!ntdll (null)(0) +18
« Reply #13 on: 24 January 2013, 16:00:28 »
Give rev 4051 a try

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
4060 : Anarchy crashed in the winter_forest again. This time I moved a bit.

logs: http://www.datafilehost.com/download-e895078c.html and greets

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
For info:
nig has these problem on two different computers, both with nvidia cards and windows. One is a notebook (Nvidia 2000m ?), the other one a Desktop computer (Geforce 580 GTX ).
It just happens in 3.7.2-dev, NOT in 3.7.1 . He also said that the scenario behaves different  in 3.7.2-dev. This made me think it might have soemthing to do with the latest AI changes made in svn ?

It looks like the Problem has nothing to do with selection problems and happens with both, selectBuf amd colorPicking.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Try 4061. I tried the same scenario but it does not crash for me. I added some more logging so lets see if we can track down this bug.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I forgot to report that I also tried to reproduce this on r4060 yesterday on a Windows 7 (32 bit) VM. I just started the Anarchy scenario and kept it running (in the background, without actually playing) for 25 minutes, but it did not crash. In case this issue is video related this test scenario does not help much, though (due to video drivers actually running on the Linux VirtualBox host).
« Last Edit: 27 January 2013, 15:36:39 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
What AI changes?, i noticed some revisions ago that the AI got much smarter, In my game it was acually able to build units. (something wich it have never done before), but this behavior recently changed.(so that the AI is now dumb again :(  ).
« Last Edit: 28 January 2013, 11:57:00 by Coldfusionstorm »
WiP Game developer.
I do danish translations.
"i break stuff"

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
r4064: Its still there.
I fumbled around with fog of war, changing teams to have a look to see what is happening in the other teams. But every thing i do to just see what all the units are doing is changing the game play and the error disappears.

So Im am nearly convinced its just a silly event in the game play which causes that error. The main thing is not, that anarchy is crashing when you do nothing for 15 minutes (or just one at speedloops 16). The thing is, that this event happens in other games and is probably triggering the same error again.

interesting is the dependency on tilesets. does the tileset matter for the decisions of AI?. In Anarchy it has to be a movement of AI that triggers that error - but only in tilset winter_forest.

Greets

I remember I had a similar error long time ago with "my island". I could reproduce that error in that time by doing the same very defensiv tactic (try to be not to be seen too early).
If you do this in those days there will come an initiate and will discover your base. After a short time there was then the error appearing regulary.

So it might be there for long time - but just happening rarly
« Last Edit: 28 January 2013, 12:05:46 by nig »

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
figured out, that you can look at the bug in a normal game, which settings are the same llike the sceanrio:


Download this image: http://www.datafilehost.com/download-003b6a36.html

I tried to find something unusual like big crowds or something blocked or whatever.
The error occures in the second attack of blue magic against yellow magic. yellow has lost its castle already by the green tech, and one battlemage of blue is attacking the final summoner guild, followed by some blue collegs. Game crashes befor they arrive and before summoner guild is finally down.

found nothing unusual until now, but:

Error does not occure when i load a saved game. I did the saving before and the game crashed like always. But not if i reload that save.
Error is independent of resolution of screen, but depends on the position of camera:
If I look on that fight described above at the yellow base, the error does not occure.
If  i look at green or blue base, the error occores.

That is all real magic

Edit (tomreyn): Image downloaded from file storage host, uploaded to image hosting site + embedded
Subsequent edit by Omega: The image host used by Tomreyn does not allow direct linking. Reuploaded to Imgur.
« Last Edit: 28 January 2013, 19:07:49 by Omega »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
In linux I get no crash and there is not really a second attack of blue attacking yellow.
If blue attacks yellow the second time only oone building is left amd green is in blues "town" .

Please go to options and set selectionType to "selectBuf" and try it again. Does this also happen with 
FastSpeedLoops=8
in glestuser.ini ?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
Quote
In linux I get no crash and there is not really a second attack of blue attacking yellow.
If blue attacks yellow the second time only oone building is left amd green is in blues "town" .
Yes, thats what I tried to describe. Same happens to me. The crash happens when the blue ghoul reaches the scene. A few secs before the last summoner guild of yellow dissappears

happens too at fastspeed=8, selectBuf was selected all the time

Greets

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
I cannot reproduce this on Linux using the steps given above.

*Update: please show us debug.log as i log more information which may help find the bug.

Thanks
« Last Edit: 29 January 2013, 00:13:55 by softcoder »

nig

  • Technician
  • ****
  • Posts: 110
    • View Profile
logs of 4065, logged to HDD at speedloops=8, colourpicking:
http://www.datafilehost.com/download-65b75b46.html

logs of 4065, logged to HDD at speedloops=8, selectbufpicking:
http://www.datafilehost.com/download-70611b81.html

Greets

 

anything