Results 1 to 7 of 7

Thread: RR auto-restart after plug-in error

  1. #1
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265

    RR auto-restart after plug-in error

    I've encountered something that I can't find an answer to.

    Every now and then when a plug-in (All in C# .Net 3.5) fails during testing (especially with an uncaught error), Riderunner shuts-down and then restarts all by itself.

    Is this the expected behavior?

    Is there a RR.ini parameter or other way to prevent the restart?

    Could it be something in the plug-in? To the best of my knowledge they all follow the format/rules given in the examples. The case in point is a plugin the only accepts a command and returns code (2) and there was an error in the plug-in internal parsing of the command. Other than that, at this point in development, it does nothing else.

    This is a problem for me in that upon this automatic restart, all of my log files are overwitten and other nasty things happen, and worse yet, the restarted RR is not completely usable. Actually if the original error is persistent, I can only stop the restart cycle by killing the RR process tree using the task manager.

    Anyone else encountered this?

    Regards,
    Jim

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,585
    Well first of all, I would make sure the plugin doesn't have any uncaught errors.

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    RR doesn't restart itself for any reason, however, if any application/dll/script creates a reference to the SDK object it will cause RR to automatically load (if not already loaded). If your plugin is accessing/creating the SDK object to send commands/obtain info from RR on different parts of the application then it is possible for one part to cause the error/exception (causing RR to close) while another part could be referencing the SDK object causing RR to re-load. This may also happen on different levels like another unrelated application referencing the SDK object while your (or another) plugin crashed and caused RR to close. I haven't seen it happen because of two RR plugins but I would not rule it out, but it's definitely more likely with a separate EXE or Script (that won't crash with RR) and something internal to RR (i.e. bug or plugin) causing it to crash.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  4. #4
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265
    guino,

    Thank you for a very helpful response (unlike some others). Since I have several .exe files running as well as plug-ins, I now have a path to correcting the problem. All of the exe files do "instantiate" the SDK and use it extensively to update/maintain RR variables and request other actions.

    Clearly, if a plug-in has failed, causing RR to fail and an exe attempts to use the RR SDK interface during or after the RR failure, RR will be restarted. I think I will take several remedial approaches. One, check for RR running before all calls from the exe files to the SDK and two, a more "sledge-hammer" approach, to archive an existing log file as each component starts. At least then I can find what actually casued the failure in the first place.

    Again thanks.

    Regards,
    Jim
    Last edited by obrienj; 10-12-2012 at 07:40 AM. Reason: Typo

  5. #5
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,585
    So don't believe in catching the errors in your code in the first place?

    Or being advised to do so helpful. Good to know.

  6. #6
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265
    Quote Originally Posted by Enforcer View Post
    So don't believe in catching the errors in your code in the first place?

    Or being advised to do so helpful. Good to know.

    Not even worth commenting on.

    Regards,
    Jim

  7. #7
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265
    This doesn't need to go further.

    Regards,
    Jim

Similar Threads

  1. Plugin Error loading - Automation error
    By efun in forum RR Plugins
    Replies: 2
    Last Post: 10-11-2009, 09:41 AM
  2. Replies: 20
    Last Post: 12-10-2006, 10:11 AM
  3. Power through AC/DC input plug, or battery plug?
    By simvegas in forum Power Supplies
    Replies: 3
    Last Post: 02-21-2006, 06:41 PM
  4. auto sync option and start/restart computer
    By laser1983 in forum General MP3Car Discussion
    Replies: 4
    Last Post: 01-15-2005, 09:34 PM

Bookmarks

Posting Permissions

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