Clipboard issue with X11

Hi

I’m new to this list, but not completely new to SDL. Welcome
everybody.

I am experimenting SDL2.0.1 in linux and I found a strange behaviour
with the clipboard api. When I play with SDL_GetClipboardText and
SDL_SetClipboardText, then after a while, there seems to be a weird
interaction with emacs (which I use for coding).

Namely: as soon as I select a test region in emacs, emacs completely
freezes and eats 100% CPU, I have to kill it.

On the other hand, my small SDL app does not notice anything and is
still running fine.

Is it possible that SDL does something nasty with the X11 clipboard ?

Wouldn’t the suspect be rather emacs if its process eats 100% CPU?

If you are adventurous, you could try to attach a debugger to the emacs
process if you have sources to see what it is doing.
http://www.emacswiki.org/emacs-en/DebugEmacsOn 1/31/2014 1:51 AM, sanette-linux at laposte.net wrote:

Hi

I’m new to this list, but not completely new to SDL. Welcome
everybody.

I am experimenting SDL2.0.1 in linux and I found a strange behaviour
with the clipboard api. When I play with SDL_GetClipboardText and
SDL_SetClipboardText, then after a while, there seems to be a weird
interaction with emacs (which I use for coding).

Namely: as soon as I select a test region in emacs, emacs completely
freezes and eats 100% CPU, I have to kill it.

On the other hand, my small SDL app does not notice anything and is
still running fine.

Is it possible that SDL does something nasty with the X11 clipboard ?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I would report this to the Emacs developers anyway just for the fact
gets stuck eating 100% CPU and needs to be killed. No program should
get stuck like that, under any circumstances.

2014-02-01, Andreas Schiffler :> Wouldn’t the suspect be rather emacs if its process eats 100% CPU?

If you are adventurous, you could try to attach a debugger to the emacs
process if you have sources to see what it is doing.
http://www.emacswiki.org/emacs-en/DebugEmacs

On 1/31/2014 1:51 AM, sanette-linux at laposte.net wrote:

Hi

I’m new to this list, but not completely new to SDL. Welcome
everybody.

I am experimenting SDL2.0.1 in linux and I found a strange behaviour
with the clipboard api. When I play with SDL_GetClipboardText and
SDL_SetClipboardText, then after a while, there seems to be a weird
interaction with emacs (which I use for coding).

Namely: as soon as I select a test region in emacs, emacs completely
freezes and eats 100% CPU, I have to kill it.

On the other hand, my small SDL app does not notice anything and is
still running fine.

Is it possible that SDL does something nasty with the X11 clipboard ?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

ok, thanks for the advice, I’ll try to check on the emacs side

Le 01/02/2014 20:17, Sik the hedgehog a ?crit :> I would report this to the Emacs developers anyway just for the fact

gets stuck eating 100% CPU and needs to be killed. No program should
get stuck like that, under any circumstances.

2014-02-01, Andreas Schiffler :

Wouldn’t the suspect be rather emacs if its process eats 100% CPU?

If you are adventurous, you could try to attach a debugger to the emacs
process if you have sources to see what it is doing.
http://www.emacswiki.org/emacs-en/DebugEmacs

On 1/31/2014 1:51 AM, @Sanette wrote:

Hi

I’m new to this list, but not completely new to SDL. Welcome
everybody.

I am experimenting SDL2.0.1 in linux and I found a strange behaviour
with the clipboard api. When I play with SDL_GetClipboardText and
SDL_SetClipboardText, then after a while, there seems to be a weird
interaction with emacs (which I use for coding).

Namely: as soon as I select a test region in emacs, emacs completely
freezes and eats 100% CPU, I have to kill it.

On the other hand, my small SDL app does not notice anything and is
still running fine.

Is it possible that SDL does something nasty with the X11 clipboard ?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org