User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: DebugObject now out - run events when your app crashes

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,091
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Cool DebugObject now out - run events when your app crashes

    Hey folks,
    Ever hated it when your programs die unexpectedly and totally wreck your otherwise professional look? Or that when it crashes, it quits instantly and won't let you debug?

    DebugObject (v5) now allows you to run events when your application crashes. Instead of the classic belly-flop when your program crashes, you can set it up to:
    • Run another program to show a "Uhoh, your prorgam died, want to restart the program and/or send an email to the developers?" popup.
    • Save files that need that last bit of information stored.
    • Delete sensitive or temporary files.

    Thanks to the cool coding behind DebugObject, not only will this handy extension catch any crash in the entire MMF2 runtime, but any crash within any of the extensions you're using in your program, too.

    It features log output which can be switched on and off at runtime, an optional console where you can input debug commands, several methods of handling crashes, and ways to trigger crashes (useful for hack detectors).

    The program comes with full documentation and an example file, showing DebugObject's capability.

    Enjoy, and in case you missed the download link, here.

    - Phi

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This sounds really handy. I'm quite keen to try the "Save files that need that last bit of information stored."

    I'm curious, if your Save event is the event that causes the crash, any you re-run the save event on the crash, would it cause a hall-of-mirrors effect? Is the extension smart enough to pick up this kind of loop?

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,091
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    It can pick up on itself, but I haven't coded the extra 6 lines to stop-recursive-errors. I should probably do that soon.
    The saving can't be multi-threaded, though. If it's the type that stalls MMF2 while it saves it's fine. But after the last "On unhandled exception" event finishes running its actions, the app insta-closes.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,310
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Woah! That sounds epic! Downloading it.

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's for which Runtime ?
    (Windows, I think it's, but other ?)
    By the way, Yippikayai!

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,091
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Talking DebugObject v6 now out - minidump generation added.

    New version supports detecting crashes if attempting to run the "on unhandled exception" events fails. It also supports minidump generation, which is essentially a copy of the environment that caused the crash which can be opened in Visual Studio at your leisure. You can set the minidump to be as detailed or basic as you want.

    I've fixed the properties, bar the new-to-this-version one, which is buggy for the moment and so has been disabled.
    The documentation has been repaired as well and the a/c/e's documented a bit more fully.
    Finally, the support for handling the console has been increased significantly.

  7. #7
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that fantastic object Phi!
    Also thanks for your answer !

    Cheers!

    EDIT:

    In example file, I noticed that it there in place thoses events lines when we click on the : "Crash with DebugObject" button:
    Cause crash: access violation (read)

    So.. It's logic that we can handle THIS precise case of crash no?

    Instead we can only set (and see) this condition for the DebugObject:
    Unhandled exception trigger

    AND no conditions to handle this precise trigger exception's case..
    (a forget?)

    It then will be useful to add some conditions like:
    Custom Exception Trigger On "test1"

    And then add actions like:
    Cause crash: test1

    It's my mind and perhaps an enhanced future feature for a future version !

    Well, thanks to read at me!

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,091
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    I think what you want is a function object, they do the same thing, but unlike DebugObject they don't make the application quit once they're done executing.
    If you don't want to use an extension, you could use a fastloop running once.

    However, I think there should be some expressions for retrieving information about the crash when it happens. Just make sure you read the help file, under the "On Unhandled Exception" condition.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    NecroLuigi's Avatar
    Join Date
    Jul 2011
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Older versions?

    Hello, Phi! First of all, AWESOME extension, thanks and congrats!

    Would you happen to have somewhere a download link for the previous 2 or 3 releases of this extension? We have been using it in The Journey of Eko and recently had to reinstall MMF. I downloaded all the needed extensions, but I'm still unable to open the mfa for the game - MMF says it's lacking debugobject.mfx. I then reinstalled Debug Object directly from your link (instead of Extension View), and also directly from your site, but no luck... The funny thing is that I know the extension is installed, I am able to add it to a new app, and damn it, I can SEE the files in the Data and Extension folders! I just can't open the Eko mfa, which leads me to think that maybe it's looking for an older version of the extension... Any idea if that would be at all possible, and do you have handy a couple older versions? Even if my game uses and outdated version, I'd need the old extension at least to be able to open the mfa and remove the events before I can update to the new version of the extension.

    If that's any help, we originally added the extension around June (I believe), and I see a post from you in early July announcing a new version - that's what led me to this hypothesis in the first place.

    Thanks a lot!

  10. #10
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,091
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Hey Gabriel, I have old versions available (see here), however I am encountering a bug with MMF2 regarding MFA loading like that.
    | I've posted on the forums to no avail; Yves/Francois don't appear to acknowledge it, and the bug isn't part of my extension's code, as no code in my extension is even called by MMF2. It's something MMF2-side, which declares the extension isn't installed based on some unknown check. Contact Francois with your MFA, maybe that will resolve it; I have about 3 other issues similar to it.
    | In any case, make a backup copy of any MFAs and autosaves you have with DebugObject as I cannot guarantee you will be able to open them later if you attempt to open them and fail to.
    | Also check out the new beta of MMF, 258.0 RC, as it may have something to do with it.
    ~Phi

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 27th September 2019, 06:58 AM
  2. Reorganize Common Events into Global Events
    By FinalSpecimen in forum Fusion 2.5
    Replies: 2
    Last Post: 24th September 2015, 08:16 PM
  3. DebugObject update
    By Phi in forum Extension Development
    Replies: 27
    Last Post: 14th July 2013, 01:05 PM
  4. Performance of behavior events vs frame events
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th July 2013, 05:24 AM
  5. Group of events & global events - performance?
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 9th June 2010, 03:00 PM

Tags for this Thread

Posting Permissions

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