User Tag List

Results 1 to 6 of 6

Thread: Lacewing - Fatal Crashes

  1. #1
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lacewing - Fatal Crashes

    The Flash version of Lacewing is a bit of a mess. It has a number of issues that cause a Flash swf to completely lock up, which is pretty disastrous. I don't even think the errors are that hard to fix, just involving a check for a null value every now and then.

    The following errors are the ones that pop up when I'm running in the debug version of Flash, and only when I've got somewhere around 18 or so connections.

    This is the most common one:
    Code:
    TypeError: Error #1009: Cannot access a property or method of a null object reference. 
        at lacewing::Client/handleMessage()
        at lacewing::Client/process()
        at lacewing::Client/onSocketReceive()
    Occasionally I also get these:
    Code:
    Error: Error #2030: End of file was encountered.
        at flash.utils::ByteArray/readBytes()
        at lacewing::Client/readBinary()
        at lacewing::Client/handleMessage()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/onSocketReceive()
    Code:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at lacewing::Client/getPeer()
        at lacewing::Client/handleMessage()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/process()
        at lacewing::Client/onSocketReceive()
    I'm not sure what kind of ritual one must perform to get a fix for Lacewing, but Mathias and Looki (who aren't even the authors!) have patched the flipping thing before, so I'm posting this here with the hope that my last few months of work haven't been completely wasted.
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export ModuleUnicode Add-on
    Pharanygitis's Avatar
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    1,037
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Dizzy,

    have you this version from lacewing?
    http://community.clickteam.com/showthread.php?t=72091

    Interessting bug.. I hope it comes a lacewing-patch for flash very soon (I'm working on a lacewing-flashgame too) :-/

  3. #3
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using that version with an extra fix or three from Looki. It's here for whoever wants the latest, most-fixed version to work from.

    Oooh, but I'm now realising that it's a very similar problem to the one Mathias was fixing last time, with numbers being read as much, much higher than they should be. As soon as the number of connections goes past 16, everything crashes, because 2^17 > 65535, the capacity for a short. That would explain the various stack overflows, null values when it comes to player ids, etc.
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  4. #4
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The issues seem to be with server-sent player left channel and player joined channel messages. So one way to get around the catastrophic crashing errors is to just not use channels in your app. For people who code their own servers with pyLacewing or something else, like me, this isn't a massive problem, since we can use the server to relay a clients messages to other clients ourselves.

    Just to help out other Lacewing-Flash developers, I'll spell out the two choices you have: 1) Use channels, but you can only have a maximum of 16 players in a channel. Any one joining or leaving after that will cause every other player's app (or sometimes even browser tab) to crash. 2) Don't use channels, but you'll have to write your own server to relay messages.
    Cranktrain - Currently finishing a new game called The Cat Machine!
    @MattLuard on Twitter.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This (and an iOS port) is one of my major priorities after the Android runtime has been released.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export ModuleUnicode Add-on
    Pharanygitis's Avatar
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    1,037
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hope for a update about this :-/ I have a lacewing project in flash, too!

Similar Threads

  1. Basic Lacewing server/Serveur Lacewing basique
    By samcool_129 in forum File Archive
    Replies: 4
    Last Post: 24th April 2013, 06:50 AM
  2. MMF2 FATAL FLAW
    By JRight in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 3rd April 2011, 12:14 AM
  3. Lacewing Server Crashes
    By Archtype in forum Lacewing
    Replies: 6
    Last Post: 8th December 2010, 08:03 PM
  4. Fatal 3D object Subapp Bug
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 1st March 2007, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •