User Tag List

Results 1 to 8 of 8

Thread: Lua crashing

  1. #1
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua crashing

    I've been working on a level editor for a while, and between all the file IO and data structures and interface functions, I've put in a little over 2000 lines of lua, broken up into multiple module files that I load at runtime.

    It's worked out pretty well, but a lot of times my application will crash when I exit it, or when lua throws an error - essentially when the lua engine terminates. A lot of the time, just a small code variation will change the crashing behavior. For example, adding a no-op line "local blah = 1 + 1", would prevent a particular function call from triggering an end-of-application crash.

    Is there any particular magic to prevent this or is it known behavior, or am I over stressing the object? It seems like a cleanup issue of some kind because it (fortunately) doesn't crash during normal execution, just when lua terminates either on error or at end-of-application.

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    TL doesn't crash for me when i exit it (well a simplistic level doesn't, anyway)

  3. #3
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    It varies by build, and probably by computer because some people are complaining of the crashes. It's also crashing in my dev build right now, even if you don't do anything in it.

    Windows reports exception 0xc0000005, memory access violation, maybe a dangling pointer somewhere.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    The crashes are one reason I made the Lua+ object.

  5. #5
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    Is it out of beta yet?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    Yes, but it has a few known bugs (they probably won't affect normal usage- I am going to fix them ASAP).

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    Please send me an example program at vortex2 at gmail dot com and I will see if I can figure out what is going on... I have to admit that I am extremely busy so if I completely blow you off, it is nothing personal it is just that I didn't have time.

  8. #8
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua crashing

    Thanks for the offer anyway. I understand being short on time. I've sent you my program because I have nothing smaller and it's nothing I can isolate. I hope crash data itself will be useful, because I don't expect trawling through code and events will be helpful in this case.

Similar Threads

  1. Crashing?
    By Outcast in forum Fusion 2.5
    Replies: 19
    Last Post: 8th January 2014, 09:30 AM
  2. keeps crashing
    By TheCrimsonTaco in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 1st May 2012, 02:52 PM
  3. Why is this crashing?
    By ineke in forum Android Export Module Version 2.0
    Replies: 14
    Last Post: 9th April 2012, 06:22 PM
  4. Crashing
    By DistantJ in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 13th February 2012, 07:57 AM
  5. Crashing
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th May 2011, 09:00 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
  •