About Monkey 2 › Forums › Monkey 2 Projects › Ted21 github update
This topic contains 41 replies, has 6 voices, and was last updated by
AdamStrange
2 years, 8 months ago.
-
AuthorPosts
-
August 11, 2016 at 10:53 am #2932
yea will install all those updates later this week, ted21 craches many times, mostly when:
– the running program hangs -> debug window starts -> close running program -> re-run program -> ted21 crash– file new -> copy past class text source -> save file -> place cursor at the top and place some returns and write some new code above in the top -> ted21 crash
August 11, 2016 at 10:57 am #2933new updates should stop the crashes
August 12, 2016 at 8:24 am #2941nope its still crashes after a program hang -> then stop the program -> and re-run the program -> ted21 crash
but i’m used to it
August 12, 2016 at 8:48 am #2942I’m tracking down crashes and error at the moment. If there are any you can repeat – let me know
The new file-paste-close is being dealt with
August 12, 2016 at 9:30 am #2943@gcmartin. if this is something that you can easily reproduce. can it be done with different files or just one project. I can look at doing a compile with your source code and see if I can track down the crashes?
August 12, 2016 at 9:42 am #2944I will try to create a file this week for you.
August 12, 2016 at 10:17 am #2945Excellent. any help is gratefully worked on until i find the cause.
one more thing. you on windows or mac?
August 12, 2016 at 6:20 pm #2951One way to crash Ted21, atleast here on windows 10.
File->New. Type anything, then close the tab without saving.
‘Can’t suspend main fiber’ is the error in Ted2 console.
My guess is when trying to display the Save/Discard Changes/Cancel dialog.
EDIT: After reading further up, you seem to be aware of this already..
August 12, 2016 at 7:56 pm #2952Step 1 start on osx ted21
Copy / past / save this error generated codeMonkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778Namespace myapp#Import "<std>"#Import "<mojo>"Using std..Using mojo..Class MyWindow Extends WindowMethod New()Local FrameSetCollection:StringMap<FrameSet> = New StringMap<FrameSet>()Local player:Player = New Player(FrameSetCollection, "Bla", 200, 300)EndMethod OnRender( canvas:Canvas ) Overridecanvas.DrawText( "Hello World",Width/2,Height/2,.5,.5 )EndEndFunction Main()New AppInstanceNew MyWindowApp.Run()EndClass FrameSetField Position:= New Vec2fField Vector:= New Vector()Method Move:Void(_mx:Float, _my:Float)' Print _mx' Print _my' HERE IS THE ERROR, CREATING NEW VEC2F''Position=New Vec2f' Vector.x = 2' Vector.Set(3)' Position = New Vec2f(_mx,_my)EndEnd ClassClass SpriteField FrameSetCollection:StringMap<FrameSet>Field FrameSetColKey:StringMethod New(_FrameSetCollection:StringMap<FrameSet>,_FrameSetColKey:String)FrameSetCollection = _FrameSetCollectionFrameSetColKey = _FrameSetColKey' FrameSetCollection.Add(FrameSetColKey, New FrameSet)EndEnd ClassClass VectorField x:FloatMethod Set(_x:Float)x= _xEndEnd ClassClass Player Extends SpriteMethod New(_FrameSetCollection:StringMap<FrameSet>,_FrameSetColKey:String,_initX:Float,_initY:Float)Super.New(_FrameSetCollection,_FrameSetColKey)_FrameSetCollection.Get(_FrameSetColKey).Move(_initX,_initY)EndEnd ClassDebug run it.
Then the program hangs, press the red stop button.
Ted21 is now still alive, and the program is stopped.Then press again Debug run.
Ted21 crashes now (quits) and the program hangs again (manual force quit in osx)
This is with all memory generated errors.
This is on my macbook air (latest osx) and (iMac)
August 12, 2016 at 8:39 pm #2953and a other situation
run a non error program and use DebugStop() to stop the program.
after that press the red button in the topbar (next debug).then remove the DebugStop() AND don’t press the stop button in the debug view.
Now run debug run again, and ted21 crashes, the result is the same as above topic.this won’t happen if I do press the stop button in the debug window.
So I assume to fix this bug, is to run that action before running a new debug run
August 13, 2016 at 5:57 am #2960@ gcmartin
I’ve run the code and your right about the memory violation. I tested it in ted2 and it’s still there so I am raising it as a mx2cc bug!!!
August 20, 2016 at 6:14 am #3245new version now on github with following:
Mark has updated monkey to V1.03 and broke ted21, so to compile you will need V1.02
but ted21 work fine with V1.03 so compile on V1.02 and use with both .02 and .03
<hr />
Big update with lots of stability and uber fixes throughout. it seems very stable now.
new left code view rewritten from ground up. new audio document – you will need to update mojo/audio modules for this to work
property icon changed and also changed color
Clicking on the status bar will move you around the document (error on the left, current position on the right)
document cursor position icons now functional and added to toolbar
debug/stop icons on toolbar now correctly enable/dissable
-
AuthorPosts
You must be logged in to reply to this topic.