2025-07-18 11:49 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004715Spring engineGeneralpublic2015-04-29 01:47
ReporterGoogle_Frog 
Assigned Toabma 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version98.0.1+git 
Target Version99.0Fixed in Version 
Summary0004715: 98.0.1-457-g9736910 terrain invisible/black for some players with ati binary AND open source drivers
DescriptionSome players have invisible terrain in 98.0.1-457-g9736910. I have an infolog with settings and an ATI card so it may be ATI related.

98.0.1-451-g0804ae1 works and buildbot has no builds between the two versions.
Additional InformationAn infolog: http://pastebin.com/vWeuvTJz

Example image: http://snag.gy/PYx9R.jpg

Ticket opened on ZK tracker: https://github.com/ZeroK-RTS/Zero-K/issues/646
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0004740closedabma (CodeXL) vertex shader compilation fails (ATI) 
related to 0004741resolvedabma opengl error: glDrawRangeElements called in state where it is not allowed 
+Relationships

-Notes

~0014240

Anarchid (reporter)

https://github.com/spring/spring/commit/34f289c277d523c6eccbc74f185d2857bb56f948 seems relevant.

~0014243

abma (administrator)

this error should be fixed first before investigating more:

[f=0000000] [Map Edge Extension] Error: Map Edge Extension widget: mirror shader error: Vertex shader failed to compile with the following errors:
ERROR: 0:17: error(0000164) l-value required: assign "gl_Vertex" (can't modify an input)
ERROR: 0:18: error(0000164) l-value required: assign "gl_Vertex" (can't modify an input)
ERROR: 0:31: error(0000162) Wrong operand types: no operation "&&" exists that takes a left-hand operand of type "uniform highp float" and a right operand of type "uniform highp float" (or there is no acceptable conversion)
ERROR: error(0000273) 3 compilation errors. No code generated

~0014244

abma (administrator)

also an infolog.txt with this error and DebugGL = 1 could be useful...

~0014246

lhog (reporter)

Here is my infolog with DebugGL = 1

https://drive.google.com/file/d/0BzWH8KJ5x7tWUjI0UWdHQ0pFZGc/view?usp=sharing

~0014248

abma (administrator)

Last edited: 2015-03-28 15:21

View 2 revisions

as log spam begins after "Mex Placement" is initialized:

[f=0000000] Mex Placement Initialised with 22 spots.
[f=0000000] Error: OpenGL: source<API> type<error> id<1000> severity<high>:
glDrawRangeElements has generated an error (GL_INVALID_OPERATION)
[f=0000000] Error: OpenGL: source<API> type<error> id<2003> severity<high>:
glDrawRangeElements failed because the currently active shader combination is invalid (GL_INVALID_OPERATION)

~0014249

lhog (reporter)

As an example attached my infolog as how it looks on 451 engine (infolog_98.0.1-451-g0804ae1.txt)

~0014251

abma (administrator)

does it work with /advmapshading 0 ?

(thats no solution, just to isolate the problem)

~0014252

lhog (reporter)

Yes, it works fine with /advmapshading 0

~0014255

abma (administrator)

does it work for you with AdvMapShading = 1 & Shadows = 0?

~0014258

lhog (reporter)

Last edited: 2015-03-30 21:24

View 2 revisions

With AdvMapShading = 1 & Shadows = 0 it looks similar except the edge between water and ground is visible (see screenshots). Also attached infologs.

EDIT: I've also cheched same engine version with BA 8.09 and result is consistent with Zero-K, i.e. I don't see map elements drawn.

~0014264

abma (administrator)

i've an similar issue with the ATI opensource drivers on linux, terrain is black for me with these settings.


bisected it to https://github.com/spring/spring/commit/34f289c277d523c6eccbc74f185d2857bb56f948 , too.

~0014265

abma (administrator)

see attached "infolog-abma.txt", which is very verbose

~0014346

jK (developer)

Fix 9d1855cbdae23aee3e3c89af61f021fc26f88340 committed to develop branch: attempt to fix 0004715: shader failures, repo: spring changeset id: 4806

~0014367

abma (administrator)

sadly this bug isn't fixed for me in 98.0.1-557-gab9cf88 :-|

~0014374

Anarchid (reporter)

Last edited: 2015-04-22 12:14

View 2 revisions

This is not anyhow zk related, but i guess that's known.

Bump because people report having it with Gravitas:

http://i.imgur.com/rT5fJUm.jpg
http://zero-k.info/Forum/Thread/14090#125725

~0014383

abma (administrator)

Last edited: 2015-04-24 18:59

View 2 revisions

as this is a release blocker:
default disable advmapshading for ati cards?

currently its default enabled:
https://springrts.com/wiki/Springsettings.cfg#AdvMapShading

~0014387

lhog (reporter)

@abma, seriously? How about reverting the erroneous commit (identified quite long ago)?

<irony>
Out of curiosity what if I told you that there was a deadlock somewhere in the game startup code (it actually is), would you then disable game start-up?
</irony>

~0014388

abma (administrator)

Last edited: 2015-04-24 23:35

View 3 revisions

yes, seriously. reverting is bad as it would reintroduce 0004700.

its visual only and can be fixed later.

~0014395

Google_Frog (reporter)

I would prefer broken heightmap view to an invisible map. I would like to use the last 100 or so commits to develop to fix the endgame crash and make sure that the pathing changes work.

~0014399

abma (administrator)

for me no change after:
https://github.com/spring/spring/commit/5855bf1e80a5ea8f18f000600254b6f05178b47f

will try to investigate more...

~0014407

abma (administrator)

Fix 30593880d415da1f074e4f15e816d6f83cc7966b committed to develop branch: fix 0004715 the bad way:
revert part of 5855bf1e80a5ea8f18f000600254b6f05178b47f, repo: spring changeset id: 4858

~0014408

abma (administrator)

the fix makes me think that the [GLSL-PO::Validate] should message should be an error message, not a warning.
+Notes

-Issue History
Date Modified Username Field Change
2015-03-24 10:43 Google_Frog New Issue
2015-03-26 16:42 Anarchid Note Added: 0014240
2015-03-26 22:58 abma Target Version => 99.0
2015-03-26 23:56 abma Note Added: 0014243
2015-03-26 23:58 abma Note Added: 0014244
2015-03-27 08:18 abma Status new => feedback
2015-03-28 10:59 lhog Note Added: 0014246
2015-03-28 15:17 abma Note Added: 0014248
2015-03-28 15:21 abma Note Edited: 0014248 View Revisions
2015-03-28 19:31 lhog File Added: infolog_98.0.1-451-g0804ae1.txt
2015-03-28 19:32 lhog Note Added: 0014249
2015-03-29 03:13 abma Note Added: 0014251
2015-03-29 10:14 lhog Note Added: 0014252
2015-03-30 20:50 abma Note Added: 0014255
2015-03-30 21:10 lhog File Added: screen00024_shadows-0.png
2015-03-30 21:10 lhog File Added: screen00025_shadows-2.png
2015-03-30 21:10 lhog File Added: infolog_adv_shading_shadows-0.txt
2015-03-30 21:10 lhog File Added: infolog_adv_shading_shadows-2.txt
2015-03-30 21:11 lhog Note Added: 0014258
2015-03-30 21:24 lhog Note Edited: 0014258 View Revisions
2015-03-31 00:38 abma Status feedback => new
2015-04-01 09:01 abma Note Added: 0014264
2015-04-01 09:09 abma File Added: infolog-abma.txt
2015-04-01 09:11 abma Note Added: 0014265
2015-04-01 10:48 abma Summary 98.0.1-457-g9736910 terrain invisible for some players. => 98.0.1-457-g9736910 terrain invisible/black for some players with ati binary AND open source drivers
2015-04-12 01:30 abma Relationship added related to 0004740
2015-04-13 17:50 jK Changeset attached => spring develop 9d1855cb
2015-04-13 17:50 jK Note Added: 0014346
2015-04-13 17:50 jK Assigned To => jK
2015-04-13 17:50 jK Status new => resolved
2015-04-13 17:50 jK Resolution open => fixed
2015-04-19 22:49 abma Relationship added related to 0004741
2015-04-19 22:51 abma Note Added: 0014367
2015-04-19 22:51 abma Assigned To jK =>
2015-04-19 22:51 abma Status resolved => new
2015-04-22 12:14 Anarchid Note Added: 0014374
2015-04-22 12:14 Anarchid Note Edited: 0014374 View Revisions
2015-04-24 18:59 abma Note Added: 0014383
2015-04-24 18:59 abma Note Edited: 0014383 View Revisions
2015-04-24 23:13 lhog Note Added: 0014387
2015-04-24 23:34 abma Note Added: 0014388
2015-04-24 23:34 abma Note Edited: 0014388 View Revisions
2015-04-24 23:35 abma Note Edited: 0014388 View Revisions
2015-04-25 04:59 Google_Frog Note Added: 0014395
2015-04-26 03:43 abma Note Added: 0014399
2015-04-29 01:43 abma Changeset attached => spring develop 30593880
2015-04-29 01:43 abma Note Added: 0014407
2015-04-29 01:43 abma Assigned To => abma
2015-04-29 01:43 abma Status new => resolved
2015-04-29 01:47 abma Note Added: 0014408
+Issue History