Results 1 to 16 of 16

Thread: Simba closing all the time

  1. #1
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default Simba closing all the time

    While I work on my interface debugger I notice that sometimes(50%) simba closes when I give it a search through a lot of interfaces. Normally this would take a second or 2-3, but then it gets stuck on the first interface. Directly after simba closes without a warning or whatever.

    Can anyone help me out, I can't figure this one out.

    Solved
    Last edited by masterBB; 05-26-2011 at 05:06 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,691
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Try running it from the command line? Might give meaningful messages.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Here is the command line:




    Maybe you can figure this out. But to me it feels like simba is closing itself. Maybe I did something wrong with my script?

  4. #4
    Join Date
    Jun 2009
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, post script.

  5. #5
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by LolL View Post
    Yeah, post script.
    http://villavu.com/forum/showthread.php?t=64545

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    That's odd because I was working with Forms lately as well and shortly after closing my form Simba will stop working and either crash or I'll have to close it out through the command prompt. Is there something you should be calling/freeing when you close a form?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    That's odd because I was working with Forms lately as well and shortly after closing my form Simba will stop working and either crash or I'll have to close it out through the command prompt. Is there something you should be calling/freeing when you close a form?
    The odd thing is, I don't close my form. The only thing I know is that if you call a function from a form, with Smart open, you need to reopen smart or else it will close. I believe there is some unexpected behavior with forms.

  8. #8
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It seems like SMART is the bad guy.. or your code, depends on how you look at it

  9. #9
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Naike View Post
    It seems like SMART is the bad guy.. or your code, depends on how you look at it
    I already fix'd the smart issue, but everything closes now. Everything. Code is perfect though

    E: This time it closed with a simba stopped working screen, here is the info(sorry for it being Dutch):
    Probleemhandtekening:
    Gebeurtenisnaam van probleem: APPCRASH
    Naam van de toepassing: Simba.exe
    Versie van toepassing: 0.0.0.0
    Tijdstempel van toepassing: 4d375cdd
    Naam van foutmodule: StackHash_335e
    Versie van foutmodule: 0.0.0.0
    Tijdstempel van foutmodule: 00000000
    Uitzonderingscode: c00000fd
    Uitzonderingsmarge: 7359e2c4
    Versie van besturingssysteem: 6.1.7600.2.0.0.768.3
    Landinstelling-id: 1043
    Aanvullende informatie 1: 335e
    Aanvullende informatie 2: 335ebe5a2788dbca15ea0733092b731b
    Aanvullende informatie 3: 79b1
    Aanvullende informatie 4: 79b1907530b6860c506db112e1d71247
    Last edited by masterBB; 05-26-2011 at 07:55 AM.

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,691
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Ironically your paste of the command line just shows Simba shutting itself down, without any crash. I have a few more exams but then I can take a look at some issues. Although many script-form related things will be hard to solve, if at all viable.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  11. #11
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Shiny new screenshot. I used Simba debug version in combination with running from command line.



    This one gives an access violation...

    Edit: An exception while showing an other exception while showing an other exception :O

    Last edited by masterBB; 05-26-2011 at 10:35 AM.

  12. #12
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    It looks like form issues. I never use forms, and then never get crashes.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  13. #13
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    It seems this also happens when there isn't a form used. You have to take in mind my search function searches through +/- 6000 different interfaces or childs. So some unsuspected behavior was not that unsuspected. Will keep debugging, but still need help with this script.

    edit: Nvm, forms can even crash your script if they aren't even opened in that session.
    Last edited by masterBB; 05-26-2011 at 04:03 PM.

  14. #14
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    On the issue of forms - my Simba always crashed a when developing a form. With help from Dgby, I now use this default setup and I haven't had Simba crash once. Try it out and see how it goes.
    Simba Code:
    program formTemplate;

    var
      Form: TForm;

    procedure Form_Init;
    begin
      Form := TForm.Create(nil);
      with Form do
      begin
        Caption := 'Form Template';
        SetBounds(100, 100, 500, 300);
      end;

      Form.ShowModal;
    end;

    procedure Form_SafeCall(Proc: string);
    var
      v: TVariantArray;
    begin
      SetLength(v, 0);
      ThreadSafeCall(Proc, v);
    end;

    procedure Form_Free();
    begin
      Form.Free();
    end;

    begin
      ClearDebug();

      try
        Form_SafeCall('Form_Init');
      except
        Writeln(ExceptionToString(ExceptionType, ExceptionParam));
      finally
        Form_SafeCall('Form_Free');
      end;
    end.
    Wooow.. what's going on with the **?

    E: Here -> http://paste.villavu.com/show/TgNgTamdC1ZpOjzddmfC/
    Last edited by Coh3n; 05-26-2011 at 04:01 PM.

  15. #15
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    On the issue of forms - my Simba always crashed a when developing a form. With help from Dgby, I now use this default setup and I haven't had Simba crash once. Try it out and see how it goes.
    Simba Code:
    program formTemplate;

    var
      Form: TForm;

    procedure Form_Init;
    begin
      Form := TForm.Create(nil);
      with Form do
      begin
        Caption := 'Form Template';
        SetBounds(100, 100, 500, 300);
      end;

      Form.ShowModal;
    end;

    procedure Form_SafeCall(Proc: string);
    var
      v: TVariantArray;
    begin
      SetLength(v, 0);
      ThreadSafeCall(Proc, v);
    end;

    procedure Form_Free();
    begin
      Form.Free();
    end;

    begin
      ClearDebug();

      try
        Form_SafeCall('Form_Init');
      except
        Writeln(ExceptionToString(ExceptionType, ExceptionParam));
      finally
        Form_SafeCall('Form_Free');
      end;
    end.
    Wooow.. what's going on with the **?

    E: Here -> http://paste.villavu.com/show/TgNgTamdC1ZpOjzddmfC/
    Thanks a lot, gonna try this.

    Edit: figured it all out!
    There is a bug in reflection 2. Will pm drags111 about it.
    Last edited by masterBB; 05-26-2011 at 05:05 PM.

  16. #16
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Oh and thanks all for helping!

    edit: This post should've been an edit... oh wel.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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