racket / macro-debugger

Other
8 stars 16 forks source link

method set-max-width cannot be called, except in states (unlocked write-lock), args 1248 #17

Closed charlesrich closed 4 years ago

charlesrich commented 8 years ago

Please see https://github.com/racket/racket/issues/1408. This caused a lot of trouble for my students this year, but we lived with it---I am hoping it will eventually be fixed.

Also...

From: Robby Findler notifications@github.com Date: Fri, Oct 7, 2016 at 12:51 PM

Looking at the code, it seems like it is calling methods like set-max-width (and others) in an illegal way. In particular, it is calling them from threads that are not the eventspace main thread of the frame containing the editor (receiver object for the set-max-width method). The code seems to be going to some trouble to cope with this, so it may be relying on invariants I don't know about, tho. @rmculpepper may know more, as he is the author/maintainer of this code.

rmculpepper commented 8 years ago

I'll try to look at this issue again this weekend.

charlesrich commented 8 years ago

Thanks, if you have trouble reproducing the error, try disabling macro hiding.

Btw, the macro project is due Sunday, so this is no longer urgent for my class, but it does need to be fixed eventually.

Best, -CR

On Sat, Oct 8, 2016 at 2:15 PM, Ryan Culpepper notifications@github.com wrote:

I'll try to look at this issue again this weekend.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/racket/macro-debugger/issues/17#issuecomment-252439790, or mute the thread https://github.com/notifications/unsubscribe-auth/ACsqEOMu1y8AqyqgmF3RhWJT1qXo3FMiks5qx93ZgaJpZM4KRROW .

Dr. Charles Rich, Professor, Computer Science Department http://www.cs.wpi.edu Interactive Media and Game Development Program http://www.wpi.edu/academics/imgd/ Robotics Engineering Program http://www.wpi.edu/academics/robotics/ Worcester Polytechnic Institute, Fuller Laboratories B25b 100 Institute Road, Worcester, MA 01609-2280

Email: rich@wpi.edu Phone: 508-831-5945 Fax: 508-831-5776 Home: http://www.cs.wpi.edu/~rich

charlesrich commented 8 years ago

P.S. I think this is a thread race condition. Try hitting "Next Term" quickly (before Rendering Term is done), with macro hiding disabled.

On Sat, Oct 8, 2016 at 2:30 PM, Charles Rich rich@wpi.edu wrote:

Thanks, if you have trouble reproducing the error, try disabling macro hiding.

Btw, the macro project is due Sunday, so this is no longer urgent for my class, but it does need to be fixed eventually.

Best, -CR

On Sat, Oct 8, 2016 at 2:15 PM, Ryan Culpepper notifications@github.com wrote:

I'll try to look at this issue again this weekend.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/racket/macro-debugger/issues/17#issuecomment-252439790, or mute the thread https://github.com/notifications/unsubscribe-auth/ACsqEOMu1y8AqyqgmF3RhWJT1qXo3FMiks5qx93ZgaJpZM4KRROW .

Dr. Charles Rich, Professor, Computer Science Department http://www.cs.wpi.edu Interactive Media and Game Development Program http://www.wpi.edu/academics/imgd/ Robotics Engineering Program http://www.wpi.edu/academics/robotics/ Worcester Polytechnic Institute, Fuller Laboratories B25b 100 Institute Road, Worcester, MA 01609-2280

Email: rich@wpi.edu Phone: 508-831-5945 Fax: 508-831-5776 Home: http://www.cs.wpi.edu/~rich

Dr. Charles Rich, Professor, Computer Science Department http://www.cs.wpi.edu Interactive Media and Game Development Program http://www.wpi.edu/academics/imgd/ Robotics Engineering Program http://www.wpi.edu/academics/robotics/ Worcester Polytechnic Institute, Fuller Laboratories B25b 100 Institute Road, Worcester, MA 01609-2280

Email: rich@wpi.edu Phone: 508-831-5945 Fax: 508-831-5776 Home: http://www.cs.wpi.edu/~rich