From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <14ec7b180802041219w2b0e31c4y403499f4123f3ec3@mail.gmail.com> Date: Mon, 4 Feb 2008 13:19:14 -0700 From: "andrey mirtchovski" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] drawterm crash log In-Reply-To: <7FA249C3-70A9-4963-9498-A810E851255E@corpus-callosum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7FA249C3-70A9-4963-9498-A810E851255E@corpus-callosum.com> Topicbox-Message-UUID: 450de474-ead3-11e9-9d60-3106f5b1d025 a cursory look through the code indicates that there may indeed be a bug in the screen management between writing the bits on a bitmap and the bitmap to the screen. i have different code for osx which is rearranged to avoid creating a separate thread for handling the display, but that code is only for p9p and can't be dropped in drawterm without a bit of work. with that code we can at least be sure that we have no races and, chance is, you won't get a crash with it. of course, it's still better to rewrite the whole osx gui code directly in Cocoa, which may happen sooner or later :)