WineHQ
Bug Tracking Database – Bug 34055

 Bugzilla

 

Last modified: 2014-01-10 14:46:22 UTC  

Textures missing in Age of Empires II: Steam

Bug 34055 - Textures missing in Age of Empires II: Steam
Textures missing in Age of Empires II: Steam
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: d3d
1.6-rc4
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
: regression
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-07-14 10:35 UTC by Brant Watson
Modified: 2014-01-10 14:46 UTC (History)
7 users (show)

See Also:
Regression SHA1: e0494afa007a1d1ba2f4b649beedca27cb20808e
Fixed by SHA1: 12f16f2127ffce9a05eedf008c3aa3732751a7e3
Distribution: ---
Staged patchset:


Attachments
d3d debug output (42.95 KB, application/octet-stream)
2013-07-18 22:17 UTC, Brant Watson
Details
Screenshot of issue (617.23 KB, image/jpeg)
2013-07-18 22:22 UTC, Brant Watson
Details
Running with system monitor. (937.92 KB, image/jpeg)
2013-07-18 22:27 UTC, Brant Watson
Details
debug hack (1.15 KB, patch)
2013-11-20 03:42 UTC, Henri Verbeet
Details | Diff
another hack (1.38 KB, patch)
2013-11-20 15:11 UTC, Henri Verbeet
Details | Diff
patch (1.52 KB, patch)
2013-11-20 16:29 UTC, Henri Verbeet
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Watson 2013-07-14 10:35:51 UTC
All graphics black when ingame on Age of Empires II: HD Edition from Steam.

Terminal repeats:
fixme:d3d:resource_check_usage Unhandled usage flags 0x8

This appears to be a recent regression.
Comment 1 K1773R 2013-07-14 14:27:06 UTC
fixme:d3d:resource_check_usage Unhandled usage flags 0x8 is probably harmless,can you attach a log with +d3d debug?
Comment 2 Brant Watson 2013-07-16 14:53:23 UTC
Yes, I'll get to that sometime after work.  I didn't think the console messages were harmful either, but I don't think it was ever spamming them that frequently before.  I normally only run on a 5000 line buffer and it fills that pretty rapidly.
Comment 3 K1773R 2013-07-16 18:41:29 UTC
well, you can use grep -E -v to get rid of the unwantd ones ;) pass the unwated one as parameter, ie "foo|bar|foobar"
Comment 4 Brant Watson 2013-07-18 22:17:48 UTC
Created attachment 45330 [details]
d3d debug output

Last relevant lines from winedebug using +d3d relay
Comment 5 Brant Watson 2013-07-18 22:22:27 UTC
Created attachment 45331 [details]
Screenshot of issue

Strangely the trees get texture but buildings, characters, and mines seem not to get textured.
Comment 6 Brant Watson 2013-07-18 22:27:42 UTC
Created attachment 45332 [details]
Running with system monitor.

It probably doesn't matter, but it is interesting the affect it is having on my normally unused cores.
Comment 7 Brant Watson 2013-07-18 22:29:33 UTC
Problem still exists in Wine 1.6 RC5
Comment 8 Brant Watson 2013-07-18 22:31:33 UTC
(In reply to comment #4)
> Created attachment 45330 [details]
> d3d debug output
> 
> Last relevant lines from winedebug using +d3d relay

Lots of textures seem to be set to (nil) - interesting.
Comment 9 K1773R 2013-07-19 08:34:54 UTC
can you test running it with GDI? if after that its no longer black reverse it to OpenGL and turn of GLSL, i had it often on my older laptopt that turning on GLSL turned my textures black. looking at the debug now ;)
Comment 10 Austin English 2013-07-23 13:53:00 UTC
Please run a regression test:
http://wiki.winehq.org/RegressionTesting
Comment 11 Charles P 2013-08-03 05:04:07 UTC
Building Wine on 64bit systems scares me, but according to AppDB, it was fine with 1.5.28, and is still present in 1.7

As an extra, it's also running extremely slowly (1-2fps) but i guess that's for another bug report
Comment 12 Dr. Drb 2013-11-17 08:35:21 UTC
I can confirm this bug with Wine 1.7.6 and 1.5.30. Running with the "-nostartup" launch option doesn't make any difference.

I'm on a Debian Sid box with a Radeon HD 6470M, using the open source driver.
Comment 13 Dr. Drb 2013-11-17 08:38:18 UTC
(In reply to comment #12)
> I can confirm this bug with Wine 1.7.6 and 1.5.30. Running with the
> "-nostartup" launch option doesn't make any difference.
> 
> I'm on a Debian Sid box with a Radeon HD 6470M, using the open source driver.

Sorry, I forgot to mention it is 64bit OS and Wine compiled as 32bit.
Comment 14 Dr. Drb 2013-11-17 10:38:27 UTC
For sure, it's a regression. I've tested with Wine 1.5.28 and all textures are correct! Are there any information that I can provide to help fixing this bug? Thanks.
Comment 15 joaopa 2013-11-17 13:32:37 UTC
The fatest way to see this bug fixed is to perform a regression test:
http://wiki.winehq.org/RegressionTesting
Comment 16 Dr. Drb 2013-11-18 18:20:19 UTC
So, here it is:

"e0494afa007a1d1ba2f4b649beedca27cb20808e is the first bad commit
commit e0494afa007a1d1ba2f4b649beedca27cb20808e
Author: Henri Verbeet <hverbeet@codeweavers.com>
Date:   Tue Jun 11 10:21:28 2013 +0200

    wined3d: Introduce a helper function for printing floats in GLSL shaders.

:040000 040000 c4b9e3a37188f45aff9cb35d00ef45aa6242e0a4 4a7a6eadaf6ebfe495915b798111dd49d1ed8768 M	dlls"

Is that what you need?

Thanks.
Comment 17 Austin English 2013-11-18 21:51:13 UTC
(In reply to comment #16)
> So, here it is:
> 
> "e0494afa007a1d1ba2f4b649beedca27cb20808e is the first bad commit
> commit e0494afa007a1d1ba2f4b649beedca27cb20808e
> Author: Henri Verbeet <hverbeet@codeweavers.com>
> Date:   Tue Jun 11 10:21:28 2013 +0200
> 
>     wined3d: Introduce a helper function for printing floats in GLSL shaders.
> 
> :040000 040000 c4b9e3a37188f45aff9cb35d00ef45aa6242e0a4
> 4a7a6eadaf6ebfe495915b798111dd49d1ed8768 M    dlls"
> 
> Is that what you need?
> 
> Thanks.

Yes, thanks.
Comment 18 Henri Verbeet 2013-11-19 03:58:18 UTC
Does this have any kind of demo that can reproduce the issue? The commit you found looks somewhat unlikely, given that there's no debug output with GLSL compiler errors. Does reverting it fix the issue?
Comment 19 Dr. Drb 2013-11-19 14:17:47 UTC
I don't think there's a demo. I've searched and I don't see any: http://store.steampowered.com/search/?snr=1_5_9__12&term=age+of+empires

By reverting, do you mean, checkout a single commit before e0494afa007a1d1ba2f4b649beedca27cb20808e and try again (compile wine, test ...) ?

Thank you very much.
Comment 20 Dr. Drb 2013-11-19 15:16:05 UTC
Checking out to the previous commit (b02951dfa7ff416f54205dab17ae3bb98e53ce7c, immediately before e0494afa007a1d1ba2f4b649beedca27cb20808e) does work. All textures are all right.

The commit pointed out by git bisect seems to be the problem. Maybe I did something wrong, I'm not sure.

What else can I make to help?

Thank you.
Comment 21 Henri Verbeet 2013-11-20 03:42:15 UTC
Created attachment 46583 [details]
debug hack

(In reply to comment #19)
> I don't think there's a demo. I've searched and I don't see any:
> http://store.steampowered.com/search/?snr=1_5_9__12&term=age+of+empires
> 
That's unfortunate. Does the attached hack also fix the issue?
Comment 22 Dr. Drb 2013-11-20 14:46:32 UTC
Henri Verbeet, your patch fixes the problem!!!

Steps:

- git checkout master
- git pull origin master
- patch -p1 < /tmp/debug-hack.patch
- clear; CC="ccache gcc -m32" ./configure --verbose --disable-tests; make -j 4;
- make install

And then, I tested the game.

Thank you.
Comment 23 Henri Verbeet 2013-11-20 15:11:58 UTC
Created attachment 46591 [details]
another hack

How about this one?
Comment 24 Dr. Drb 2013-11-20 15:28:28 UTC
I'll give it a try Henri Verbeet.
Should I checkout master again or test both together?
Thank you!
Comment 25 Henri Verbeet 2013-11-20 15:36:30 UTC
(In reply to comment #24)
> I'll give it a try Henri Verbeet.
> Should I checkout master again or test both together?
> Thank you!

Just that patch on top of current git.
Comment 26 Dr. Drb 2013-11-20 15:54:06 UTC
It's still working with both patches applied.

Are you online on IRC, Henri?

Thanks.
Comment 27 Henri Verbeet 2013-11-20 16:00:12 UTC
(In reply to comment #26)
> Are you online on IRC, Henri?
> 
Yeah, #winehackers.
Comment 28 Henri Verbeet 2013-11-20 16:29:00 UTC
Created attachment 46593 [details]
patch

The attached patch should be more of a proper fix.
Comment 29 Dr. Drb 2013-11-20 18:23:53 UTC
It works as expected. Will it be integrated into Wine source code?
Thank you very much, Henri Verbeet.
Comment 31 Henri Verbeet 2013-11-22 10:47:42 UTC
Should be fixed by commit 12f16f2127ffce9a05eedf008c3aa3732751a7e3.
Comment 32 Alexandre Julliard 2013-11-22 12:50:28 UTC
Closing bugs fixed in 1.7.7.
Comment 33 Alexandre Julliard 2014-01-10 14:46:22 UTC
Removing 1.6.x milestone from bugs included in 1.6.2.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers