All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Kronenberg <mike.kronenberg@kberg.ch>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Mac OS X: QEMU crashes when pressing dead keys
Date: Fri, 9 Dec 2005 10:34:02 +0100	[thread overview]
Message-ID: <0BF839A5-2D32-44FD-9E19-B3EEFA3721E7@kberg.ch> (raw)
In-Reply-To: <0BE5F4F1-1337-43E6-AD37-ED47FCE3BDCB@stud.tu-ilmenau.de>


On 08.12.2005, at 18:21, Joachim Henke wrote:

> This concerns the current cocoa version in cvs:  When typing into the
> monitor and accidentally pressing a dead key, qemu quits  
> immediately and
> all unsafed data in the guest os is lost:
>
> 2005-12-04 15:15:00.833 qemu[193] Exception raised during posting  
> of notification.  Ignored.  exception: *** -[NSCFString  
> characterAtIndex:]: Range or index out of bounds
>
> Even if you don't have a Mac, you can retrace this bug by following  
> these
> links:
>
> http://developer.apple.com/documentation/Cocoa/Reference/ 
> ApplicationKit/ObjC_classic/Classes/NSEvent.html#//apple_ref/occ/ 
> instm/NSEvent/characters
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ 
> ObjC_classic/Classes/NSString.html#//apple_ref/occ/instm/NSString/ 
> characterAtIndex:
>
> [event characters] returns an empty string for dead keys, and so  
> calling
> [[event characters] characterAtIndex:0] will raise an  
> NSRangeException that
> crashes qemu. The following patch fixes this bug:
>


> To Mike Kronenberg: Q has the same problem. Pressing a dead key in the
> monitor locks the emulation and you're not able to do anything  
> further.
> Would you be so kind to confirm this? It seems that Fabrice doesn't  
> trust
> my fixes. Thanks!
>
> Regards
> 	Jo.

Thanks for this correction,

it does indeed fix the dead key issue which I was not aware of, when  
I wrote that code to retrieve isochars. (I have no dead keys on my PB  
Keyboard :) )

Fixed this in Q. But the next Build will have to wait a little, since  
we have some other Problems on OS X.
Maybe You can help us out a little with this:

When running DOS/DOS Prompt under windows under QEMU, I experience  
crashes all the way.
With freedos I have figured out, that loading himem or xms will crash  
QEMU (Option 1). Option 3 (no Drivers) works. So it could be a memory  
mapping issue... DOOM crashes half way down.

This behaviour was introduced with the new MP Code. It's not related  
to cocoa.m, it also happens with SDL. I have the same Result with  
Tiger and Panther. There are no public builds yet... that would  
generate to much mails :)

Maybe You could just reproduce this issue?

Mike

  reply	other threads:[~2005-12-09  9:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08 17:21 [Qemu-devel] [PATCH] Mac OS X: QEMU crashes when pressing dead keys Joachim Henke
2005-12-09  9:34 ` Mike Kronenberg [this message]
2005-12-09 22:34   ` [Qemu-devel] Mac OS X issues Joachim Henke
2005-12-10 13:31     ` Mike Kronenberg
2005-12-11 14:56       ` Joachim Henke
2005-12-11 17:22         ` Mike Kronenberg
2005-12-11 20:47           ` Joachim Henke
2005-12-12 17:38             ` Mike Kronenberg
2005-12-13 16:33               ` Joachim Henke
2005-12-13 19:34                 ` Joachim Henke
2005-12-14 17:53                 ` Mike Kronenberg
2005-12-17  0:03                   ` Joachim Henke
2005-12-19 18:21                     ` Joachim Henke
2005-12-20  9:33                       ` Mike Kronenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0BF839A5-2D32-44FD-9E19-B3EEFA3721E7@kberg.ch \
    --to=mike.kronenberg@kberg.ch \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.