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.
-
AuthorPosts
-
July 8, 2016 at 5:39 am #1869
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?
July 8, 2016 at 6:31 am #1870All 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?
July 8, 2016 at 6:37 am #1873no 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]}
July 8, 2016 at 6:43 am #1874Deleted 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
July 8, 2016 at 6:46 am #1875No idea sorry – are you using original Ted2?
Try a fresh unzip?
Reboot?
July 8, 2016 at 6:55 am #1877mmmmm, 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?
July 8, 2016 at 6:55 am #1878ok, not the original ted 2 – will archive and see what’s going on
July 8, 2016 at 7:09 am #1879mmm, interesting.
Reinstalled ted2
runs fine
Looks like something possibly interesting with the new tab controls I was working on
July 8, 2016 at 7:28 am #1882OK, 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…
July 8, 2016 at 7:36 am #1883last 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?
-
AuthorPosts
You must be logged in to reply to this topic.