Fatal Error with Ted2

About Monkey 2 Forums Monkey 2 Development Fatal Error with Ted2

This topic contains 9 replies, has 2 voices, and was last updated by  AdamStrange 2 years, 9 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1869

    AdamStrange
    Participant

    OK, everything going fine. then this:

    menu > file > close all

    CRASH

    on relaunch

    CRASH

    Build Error: System command “/Applications/mon…../ted2” failed

    ***** Fatal mx2cc error *****

     

    It seems there is something odd going on with the loading of the stored documents that causes it to crash. I’m not sure how to progress with this one as I can’t now run any builds of ted2.

    This is a mac so where is ted2 storing its’ settings so I can delete them – Wouldn’t a nice .ini be a better solution here?

    I can package all the files up and send them to you for debugging on your machine Mark?

    #1870

    Mark Sibly
    Keymaster

    All config files are in the ‘bin’ directory – see ted2.config.json and ted2.state.json.

    You probably want to delete ted2.state.json and restore ted2.config.json from github or orignal release.

    Can you post the contents of those files here before you do?

    #1873

    AdamStrange
    Participant

    no problem

    ted2.config.json:

    {

    “theme”:”dark”,
    “fontSize”:16,
    “monoFontSize”:16
    }

    ted2.state.json:

    {“browserSize”:307,”consoleSize”:180,”helpTreeSize”:277,”openDocuments”:[],”openProjects”:[“/Applications/monkey2/”],”recentFiles”:[“/Applications/monkey2/Mollusk.app/Contents/Resources/versions.txt”,”/Applications/monkey2/hello-world.monkey2″,”/Applications/monkey2/src/ted2/ted2.monkey2″,”/Applications/monkey2/TODO.TXT”,”/Applications/monkey2/src/launcher/monkey2_64.png”,”/Applications/monkey2/bananas/monkeyroids/monkeyroids.monkey2″],”windowRect”:[621,45,1856,979]}

    #1874

    AdamStrange
    Participant

    Deleted both and still get the crash

    been trying to debug. in mainwindow the new() method runs through without fail

    window then beings to appear, then crashes with memory violation

    #1875

    Mark Sibly
    Keymaster

    No idea sorry – are you using original Ted2?

    Try a fresh unzip?

    Reboot?

    #1877

    AdamStrange
    Participant

    mmmmm, interesting

    replaced ted2.state.json with one above and still get crash!

    Looking into mainwindow at LoadState()

    Local obj := JsonObject.Load( “bin/ted2.state.json” )
    If Not obj Then
    print “no jasonstate”

     

    When run it gives no jason error (i added that to see what was going on)

    Looks like the json file is not being loaded?

    #1878

    AdamStrange
    Participant

    ok, not the original ted 2 – will archive and see what’s going on 😉

    #1879

    AdamStrange
    Participant

    mmm, interesting.

    Reinstalled ted2

    runs fine

    Looks like something possibly interesting with the new tab controls I was working on

    #1882

    AdamStrange
    Participant

    OK, brilliant!

    I’ve tracked down where the bug is. it’s in my new version of the tabview is the tab render section. I’ll post more as I find it…

    #1883

    AdamStrange
    Participant

    last one – all sorted 🙂

    I had added a new onRender() which was causing the crash.

    Further tracking came to this little beastie:

    canvas.DrawRect( 0, 1, _current.View.Container.Frame.Width, _current.View.Container.Frame.Height-1 )

     

    so adding:

    If Not(_current) Then Return

    as the first statement to trap any error with null _currents worked 🙂

     

    Can I have my prize now?

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.