Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by lazer

Hi guys,

I'm having a problem. Two, actually. I've been at this all night and got nowhere at all, so wondering if anyone here might have any ideas.

----------------------------------------

Issue 1 - Win version of Firefox not drawing image (Update below)

The game I'm working on is done, baked, and uploaded. However, in a particular level something isn't being drawn properly in the Windows version of Firefox. It is being drawn properly in the Mac version. It is basically an image with semi-transparent text being overlayed over the tile sheet in a level.

It works in Safari and FF on Mac (and seems to work locally in Chrome, but I can't test it on the server because of the other issue below). It also works in IE 9 on Windows and Chrome (intermittently, due to issue below). But in Firefox on windows that layer just does not appear. I don't see any errors in the log and when I type ig.resources into the console that image appears...it's just not visible for some reason.


Update: Graphikos helped me figure out what the problem with the Firefox bug was (an image not appearing). The problem was that at over 20000px wide the sheer dimensions of this image were causing it to crash and not load. So instead I cut that image into ~5000px chunks and drew them side by side in the level. This worked, but started to cause major performance issues within that level. So next I tried putting in an if statement to only draw each segment when the player's position on the x axis is close enough to see that area of the map. This worked, but performance was still not good.

I ended up reverting to the 20000px image and just telling the person running this thing not to run in Firefox on Windows. A cop out, I know, but only one person will ever see this particular thing and next time I can find a more elegant solution. Big thanks to Graphikos for helping me figure out what the issue was in the first place.

----------------------------------

And issue #2: - Chrome not loading images (Update below)

Chrome fails to load some of the images in the preloader unless I refresh the page after the first load, especially on Mac. So if I clear the cache, load the game, the loader won't finish and will give me things like:

Failed to load resource game.min.js:93
Uncaught Failed to load resource: media/titles/end.jpg

And it's a different image that doesn't load each time, sometimes more than one. As a result the loader never finishes and the game is unplayable. The images are definitely there and I can't reproduce this in any other browser. It doesn't happen nearly as consistently in Windows version of Chrome, but I think I've seen it there as well.

Update: This can't be reproduced consistently across all machines, but I suspect may have something to do with this Chromium bug: http://code.google.com/p/chromium/issues/detail?id=68109

1 decade ago by Arantor

Issue 1: This is the same version of Firefox between the two, right? Anything in the console/log other than your log message?

Issue 2: Check the webserver's error log. It should be being stated as to why. Failing that, grab a browser with decent dev tools (Firefox + Firebug or Chrome, at least), load the page, switch to networking then forcibly reload the page, and check what the network requests being made are, and why they fail, as the server's response should be stated therein.

1 decade ago by lazer

Hi Arantor,

Issue 1: Yup, same version of Firefox. And nothing other than my log message is appearing.

Issue 2: Here is the error log I see via cPanel. One file (the same one I quoted above) failed to load. None of this makes any sense to me in relation to that file, though >.<

[ pid=32665 thr=140272706422560 file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-02-11 22:08:25.678 ]: Flushing all sinks (periodic action)
[Sat Feb 11 22:08:33 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:33 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:34 2012] [error] [client 180.76.5.87] 

[Sat Feb 11 22:08:40 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:40 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[ pid=32665 thr=140272706422560 file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-02-11 22:08:40.678 ]: Flushing all sinks (periodic action)
[Sat Feb 11 22:08:44 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:44 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:45 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:45 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:51 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:51 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:51 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:08:53 2012] [error] [client 157.55.16.56] Not a JPEG file: starts with 0x89 0x50
[Sat Feb 11 22:08:53 2012] [error] [client 157.55.16.56] Not a JPEG file: starts with 0x89 0x50
[Sat Feb 11 22:08:53 2012] [error] [client 157.55.16.56] Not a JPEG file: starts with 0x89 0x50
[ pid=32665 thr=140272706422560 file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-02-11 22:08:55.678 ]: Flushing all sinks (periodic action)
[Sat Feb 11 22:08:55 2012] [error] [client 66.249.67.23] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat Feb 11 22:08:55 2012] [error] [client 66.249.67.23] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat Feb 11 22:08:58 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:09:06 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:09:06 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[ pid=32665 thr=140272706422560 file=ext/common/LoggingAgent/LoggingServer.h:829 time=2012-02-11 22:09:10.678 ]: Flushing all sinks (periodic action)
[Sat Feb 11 22:09:12 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Sat Feb 11 22:09:12 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
[Sat Feb 11 22:09:13 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

Oh and here's a screenshot of the failed image from Chrome's Network tab: http://liza.id.au/wp-content/uploads/2012/02/Screen-Shot-2012-02-12-at-1.17.45-PM.png

1 decade ago by UltimateBrent

I don't believe this actually has anything to do with impact. I'm most worried about the Rewrite loops in your log there. This failed request took 7 seconds, and if you look at the log, you can see it redirecting in a loop. Maybe Firefox is not waiting long enought for it to resolve on the correct file. Either way, you need to know what's up with that redirect. No rewrite should go through more than 2 loops really. 10 is an error.

Open up your .htaccess file, and add this after you turn on the rewrite engine
RewriteLog /home/path/to/desired/log/file.txt
RewriteLogLevel 5

Then tail -f /home/path/to/desired/log/file.txt press enter a couple times to make some spaces, and then load your game. You should be able to see the requests fill up the log. Look at that and see if you can see why the rewrite is messing up, or paste it here. If you're doing this on windows, then it'll be a little harder, but just find that log file, delete it, then load the game and look at the contents afterwords.

PS: Just so i&039;m clear #/home/path/to/desired/log/file.txt should be replaced with a path to some folder you have access to and now how to reach.

1 decade ago by lazer

Gahh I just found out that the server log above is for my entire shared server, so not specific to my account. Meaning those errors probably have nothing to do with me (and apparently there's no way for me to view log or have any sort of access to any server settings themselves). When I try to do the above I also get a 500 server error :(

1 decade ago by lazer

Update: I found this bug that seems to be related..maybe.. http://code.google.com/p/chromium/issues/detail?id=68109

If that's the case I'm guessing there's not much that can be done on my end...unless anyone else has any ideas as to what I can try? I'm now focusing on the Windows Firefox not drawing that image issue. The text I output to the log is showing up, but the image itself is not. Gah I hate compatibility testing -.-
Page 1 of 1
« first « previous next › last »