Bug Issue: HTML5 problem with two or more users


Pages: 1 2

RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 18, 2018, 02:13:22 am
As reported in this thread :
http://community.stencyl.com/index.php/topic,56075.0.html
on 9857 when you upload html5 export to the server and there are two or more users that try to play with it, there are graphics aberration, huge use of memory and crash of it


rob1221

  • Master Stencyler
  • *
April 18, 2018, 05:42:05 am
Does this happen on any site or just on your server?


Issue updated by rob1221 - April 18, 2018, 05:48:02 am
  • Status changed from New to Need Info


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 18, 2018, 06:31:52 am
Hi,
this happen on local too. The html5 project is about 4Mb and if I try to load it, it take about 500Mb of memory, and then if I try to open a second tab of the html5 project, the problems of graphics and huge memory consumption is showed me and I must close browser


rob1221

  • Master Stencyler
  • *
April 18, 2018, 07:03:10 am
Ah I see.  Your problem implied that two different users from different locations would break the game somehow, but you're just loading it twice.  Does this problem happen on one of the standard sites as well like Newgrounds or Kongregate?


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 18, 2018, 09:18:49 am
Hi,
yes, I've uploaded it to one server linux (CentOS 7) with standard configuration, and if two user try to play this game on html5 one of them have graphics problem and then the other user too. (try it with mobile browser and desktop browser)


rob1221

  • Master Stencyler
  • *
April 18, 2018, 09:33:31 am
I see.  If you try what I mentioned, does the game work fine?  I'm trying to see if the problem is with the game, Stencyl, or your server.


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 20, 2018, 12:41:49 am
HI,
I've made more test on other server, and those I have found is that one player can play without a problem, but when another player try to load the game is how the second player take the priority on game/variable/save and the first one have  graphic artifact and then the game doesn't respond.

If you (first player) try to reload the page, now you take the priority and so the second player have problem like graphics and then the game freeze.

So it's independent from the server but it seems like the html5 doen's share itself. And another problem it that the game have a huge use of memory with browser
« Last Edit: April 20, 2018, 12:46:50 am by RulezTeam »


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 20, 2018, 01:07:27 am
Update: I've test with some other browser (opera and chrome) and it seems that I have no big problem. Memory consumption is better and I can play with two player. So it seems a firefox problem, but this browser is used by many people.
I'll try more test, but rob, try to find the problem with html5. Thank you


rob1221

  • Master Stencyler
  • *
April 20, 2018, 05:25:05 am
Do you get any Firefox errors with your game?  You can view the console with CTRL + SHIFT + K.


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 20, 2018, 05:34:15 am
Hi rob,
the only message that is showed is this :

Use of mozImageSmoothingEnabled is deprecated. Please use the unprefixed imageSmoothingEnabled property instead.     ImageCanvasUtil.hx:218:12


and when I try to play with another tab, I have these messages :

- Error: WebGL warning: texImage2D: Failed to allocate dest buffer.    mygame.js:2083:394

- uncaught exception: out of memory


And then, if I try to reload the first one, after little bit Firefox crash itself
« Last Edit: April 20, 2018, 05:39:20 am by RulezTeam »


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 20, 2018, 05:49:26 am
Hi,
more test. If I play with Firefox and then I try to play with Opera or Chrome, the game crash for Firefox and then freeze for Opera too.


rob1221

  • Master Stencyler
  • *
April 20, 2018, 05:52:39 am
Hmm, maybe there's a problem with OpenFL code but I can't say for sure.
  • Status changed from Need Info to New


rob1221

  • Master Stencyler
  • *
April 22, 2018, 07:16:27 am
Does this problem also happen with a blank game?
  • Status changed from New to Need Info


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 23, 2018, 01:31:55 am
Hi rob,
I've tested a black game (one scene) and there is a strange thing. I can open it with Firefox (and I have some errors that I've reported) but with Opera and Chrome, I cannot opent it. The game block itself on loader.

Errors from firefox :
Code: [Select]
Use of mozImageSmoothingEnabled is deprecated. Please use the unprefixed imageSmoothingEnabled property instead.
ImageCanvasUtil.hx:218:12
XML Parsing Error: not well-formed
Location: file:///C:/HTML5/config/game-config.json?475701
Line Number 1, Column 1:
game-config.json:1:1
XML Parsing Error: syntax error
Location: file:///C:/HTML5/config/preloader-badge.txt?475701
Line Number 1, Column 1:
preloader-badge.txt:1:1
XML Parsing Error: no root element found
Location: file:///C:/HTML5/config/preloadPaths.txt?475701
Line Number 1, Column 1:
preloadPaths.txt:1:1
« Last Edit: April 23, 2018, 01:38:16 am by RulezTeam »


rob1221

  • Master Stencyler
  • *
April 23, 2018, 05:04:44 am
And this is with the same Stencyl version you were using before?


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 23, 2018, 05:44:35 am
yes


rob1221

  • Master Stencyler
  • *
April 23, 2018, 08:42:49 am
Is this testing or publishing?  I tested a blank game on my end and don't see those errors.


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 23, 2018, 02:14:43 pm
Hi,
I've published this blank game.


rob1221

  • Master Stencyler
  • *
April 23, 2018, 02:53:24 pm
Does the test option also give you those errors?


RulezTeam

  • Subscriber - Stencyl Studio
  • *
April 24, 2018, 12:14:27 am
Hi rob,
if I test only, on Opera and Chrome I have a blank screen (no loading bar).
I have attached the project, test and publish.
I hope that this can help you.


Pages: 1 2

Details

  • Reported
    April 18, 2018, 02:13:22 am
  • Updated
    July 10, 2018, 09:18:24 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments

* BlankTest.stencyl (743.12 kB - downloaded 27 times.)
* BlankTest_Published.zip (1189.21 kB - downloaded 25 times.)
* BlankTest_Tested.zip (989.67 kB - downloaded 27 times.)