-
Notifications
You must be signed in to change notification settings - Fork 1
The Gio rewrite doesn't display anything in Chrome #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I completely rewrote it using Gio. Give it another shot. Thanks for trying it. (Sorry for the ridiculously long response time. Once again I'm reminded that even if you own a project, you still have to "follow" it to get notifications about issues, etc. Again, my apologies.) If you want to try it right in your browser, check the readme for the hotkeys, and visit http://theclapp.github.io/go-life/www/. |
Hey, no worries/apologies, you can't imagine how grateful I am for your 2-3-year response time! It's so reassuring that it's not just me! :) I get a blank white image (not just an empty HTML, if it matters) in my Chrome for the link, BTW. |
:)
:( Bummer. For me it "just works" in macOS Chrome, Safari, and Firefox, and also iOS Chrome & Safari. Random things to check:
Thanks for trying it! The app, Gio itself (the GUI toolkit I'm using), and even webassembly in Go are all still pretty experimental, so pretty much anything at any point in the chain might've gone wrong. (I mean, it was probably my code, but you never know.) |
Google Chrome is up to date
Same here. (I even played with WASM a week ago or so. BTW, did you notice that there's no trivial place to go for an instant browser checkup? Googling for e.g. "webassembly browser test" yields only implementation tidbits, not a single page I could open and freak out if I have it disabled etc. Most shamefully of all, webassembly.org itself doesn't seem to offer one, either... Or am I just grossly missing something obvious here? Like, accidentally woke up into this subtly different, neighboring alternative universe somehow?... ;-o )
Hey, I immediately thought this one was quite a good straw, actually: my net is total crap, and I'm impatient AF... :) But, alas, nope: this doesn't seem to be the culprit.
Oh yes, indeed! :-o Your favicon is missing... OK, but seriously, nothing. Clean as a baby's ass in a TV commercial.
I've got the index, and
Nope.
If you add some alerts or some console logs to the error cases, I'll gladly hit a Refresh on the URL. :) (BTW, another dev. here, so no need to go that deep with the meticulously detailed instructions, which were amazingly thorough, BTW, nice job! :) ) |
Yes! It was annoying.
Hmm. But do you actually see main.wasm in the network tab?
All my code runs in the wasm bits. I tend to think if you got any of it, you'd get all of it. I suppose I could add some kind of
Well, in your initial ticket (... going on three years ago) you said otherwise, so I went with that on the theory it was safest. Glad you liked 'em, even if they weren't necessary. |
BTW, this demo of the Magnum Framework runs here fine: https://magnum.graphics/showcase/bullet/ Wait, just a thought: I only have WebGL1 here! |
Yeah, the 4mb was from the raw space on disk, before I looked at the Chrome console.
That's a cool demo!
Hmmmm. Curious. It turns out that that one's a from a Go 1.11.1 demo. Check the JS console. After clicking the "run" button I got this:
In the Network tab for that page, if I click the "test.wasm" line, and the "response" sub-tab, it specifically mentions Go 1.11.1. ... Just saw your update about WebGL1. I guess that could be a problem? I'm not sure. The Gio webpage mentions WebGL but not a specific version. This page says I can do v1 & v2. So maybe you need v2? Edit: That'd be weird if this problem was actually hardware / driver. |
Hey, @eliasnaur can you weigh in at all here? |
(Ah, yes, realized it a minute later, and removed that part of my comment.)
It sure is! Did you see the original Unreal Tournament intro, circulating somewhere online? It works better than it did on my PC at the time! :) Amazing, how far this has gone.
Ah, thanks... So, your didactic instructions are still not all wasted then! 👍 :) But then, with that knowledge I looked harder for the go-life wasm, and seen these, FWIW: |
It looks like something is running, but there is just no graphical output. Perhaps you could verify that by outputting something when receiving pointer events. It's probably a driver or WebGL 1 problem, although Gio does runs in Safari where WebGL 2 is not supported. |
So the wasm code is definitely downloading and running, it's just not displaying anything for some reason. And yet your log shows things like The displayed text is fairly small. If you're on a 4k monitor, for example, it might be all but invisible. And the cells are in bright green on a white background ... um ... any chance you're color-blind? (I mean, talk about grasping at straws ... :). Or have your display set in such a way that that color scheme just wouldn't show up? ("Night mode"???) (Though I wouldn't expect an HTML canvas to care about that; I can tell you my code certainly has no allowance for that.) |
@lunakid Can you try in a different browser / your phone? I tried again in Safari, and can confirm that Safari doesn't do WebGL v2 (according to https://webglreport.com/ linked above), but this app chugs right along. @eliasnaur Thanks for taking a look! |
Now, that's a black-belt move, indeed! :) Firefox works just fine! 👍 (Let me know if you want to continue debugging the Chrome issue.) |
Shall we rename the issue, BTW? :) I don't even have the slightest idea now, what the original report was about... |
WooHoo! How odd, though. I think I'm willing to let this issue rest. :) Though @eliasnaur may want to keep it in mind as a data point; it's his library, I'm just a user. Thank you for the offer, though. |
If you can, please create an issue on https://todo.sr.ht/~eliasnaur/gio (or by sending an email to ~eliasnaur/gio@todo.sr.ht) with as much information about your system: Chrome version, Operating system and version, Video card etc. Perhaps a dump of information from a site like https://webglreport.com/. Thank you. |
Sure. I'll just add the missing bits here (e.g. for the convenience of immediately uploading screenshots etc.), and link this issue over there. Chrome (as said above): Version 76.0.3809.100 (Official Build) (64-bit) Windows 7 Pro/64, with WebGL report of the failing Chrome: WebGL report of the working Firefox (notice the D11 here, vs D9 for Chrome, which is quite puzzling to me, especially that it is Firefox here, which e.g. can't even play YouTube videos at all, after an earlier upgrade... But maybe this difference is due to the fact that I've disabled "Accelerated 2D canvas" for Chrome for messing with this issue. I'm going to reenable it to see if it's related....... Nope, it isn't. Strange. Tried looking up if Chrome blacklists this ATI driver perhaps, but found nothing."): |
If you run into other WebGL issues (other than this one little demo :), this thread may be of some use: Long story short: For:
Install this driver: http://downloads.guru3d.com/ATI-Catalyst-10.7-Beta-Win-7-%7C-Vista--XP-(32%7C64-bit)-download-2594.html (or even something newer, but that's what the Minecraft Forum thread mentions success with) (USE AT YOUR OWN RISK. I haven't tried it.) |
Thanks, I'm aware of that, and would love to change drivers, but need to stick with the "switchable" one, for there are two video adapters in my machine, and having a separate Catalyst driver + a separate Intel driver was said to be a recipe for trouble (at least for this laptop), AFAICR. (I'm pasting the Firefox GL report to that comment above, thanks for the tip!) |
From your Chrome report it seems that the EXT_sRGB extension is missing, which would explain the blank screen.
and upload a new version? If my theory is right, @lunakid should then see an error in the console instead of a blank window. The program still won't run, but at least we'll have an explanation. |
Btw, I'm quite impressed that Firefox manages to make it work on a 10 years old driver and gfx card :D |
Neat. Done. (Well, I realize now I updated the wasm but not the go.mod, but for now that's good enough.) Hope it works! Thanks! |
@lunakid can you confirm that the updated version prints out an error about EXT_sRGB not supported on your chrome? |
Sorry, I should've mentioned: It probably doesn't. It's not working on my Windows vm either. |
This is webglreport.com for my Windows VM in Chrome: I get nothing in the JS console, trying to run go-life in Chrome (again, in my Windows 10 vm -- where, as I'm sure you recall at the moment, but for others and/or posterity: go-life native doesn't run either; see here). Firefox works. |
Sorry about the delay, no, as Larry suggested. I can see no change in Chrome. |
[UPDATE: The issue's subject has changed, and it's no longer about the problem described right below. See the other comments for the actual topic (which is what the new Issue title indicates)!]
I just tried toying a bit with your nice & interesting experiment, but unfortunately I'm neither a Go nor a JS programmer, so can't quite tell immediately from the code: should the auto-update actually work?
It gets stuck like:
Manual page refresh works fine. (The last log line above is just a Ctrl-C after waiting a while.)
Thanks & all the best!
The text was updated successfully, but these errors were encountered: