[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-vm-dev
Subject:    [Vm-dev] Re: [unix] X11 display problem (was: Shrinking windows when Scratch is run on 4.4.7-2357 VM
From:       Amos Blanton <amos () scratch ! mit ! edu>
Date:       2012-07-30 21:21:25
Message-ID: CA+r-Ak9suoQdi+tU8txQC2ezOZEz1vEi46tW_fw9Dp6cfOWxfA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #3 (multipart/alternative)]


Removing the -xshm switch when executing the VM fixes this bug, which has
to do with some kind of   issue with the use of X shared memory extensions
and compiz.

https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1025013

On Tue, Jul 24, 2012 at 1:51 PM, Amos Blanton <amos@scratch.mit.edu> wrote:

> Previously I thought this bug only happened on 64 bit installations of
> Scratch, but we've since seen it on 32 bit installations as well. It
> appears to happen only in Ubuntu's 12.04's (normal) 3d mode. If I login in
> 2d mode, window Scratch's window resizes just fine on my machine.
>
> I've filed a bug against Scratch in Ubuntu.
>
> https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1028562
>
>
>
> On Thu, Jun 7, 2012 at 8:50 AM, Bert Freudenberg <bert@freudenbergs.de>wrote:
>
>>
>> On 07.06.2012, at 14:44, Amos Blanton wrote:
>>
>> The shrinking only happens on my 64 bit system (12.04 LTS). Any resizing
>> of the window (larger or smaller) triggers it.
>>
>> You mentioned earlier that there were outstanding issues with ia64, so
>> it's not too surprising. Actually - so far this and problems with the
>> pulse-audio plugin are the only issues I've encountered running Scratch on
>> the 64 bit VM. Seems quite promising!
>>
>>
>> You might want to check the resizing math. IIRC the VM tries to snap the
>> window width to the next multiple of 4. Maybe that is not stable if a word
>> is not 4 but 8 bytes long.
>>
>> - Bert -
>>
>> On Thu, Jun 7, 2012 at 8:16 AM, Bert Freudenberg <bert@freudenbergs.de>wrote:
>>
>>>
>>> On 05.06.2012, at 21:49, Amos Blanton wrote:
>>>
>>> > On Tue, Jun 5, 2012 at 2:45 PM, Bert Freudenberg <bert@freudenbergs.de>
>>> wrote:
>>> >
>>> >> What was the Squeak display size before resizing? (print Display)
>>> >
>>> > wmctrl says it's: 1024 x 767.
>>>
>>> That's odd ;)
>>>
>>> >> What's your screen resolution, graphics card, and window manager?
>>> >
>>> > My laptop is docked, driving a display at 1680 x 1050 via hdmi, and
>>> its normal screen (1366 x 768), is turned off.
>>> >
>>> > Graphics card:
>>> > 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation
>>> Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00
>>> [VGA controller])
>>> >       Subsystem: Lenovo Device 21da
>>> >
>>> > Window Manager must be Unity/Gnome/ Compiz, or whatever is standard on
>>> Ubuntu 12.04.
>>> >
>>> > I should note that the testing I did on 32bits Ubuntu 12.04 was done
>>> in Virtualbox VM, using Miry's latest package:
>>> http://aula.edu.es/pool/main/s/scratch/
>>>
>>> I do not see the shrinking problem in Virtual Box using Ubuntu 12.04 LTE
>>> 32 bits, fully updated. How exactly would I have to resize to trigger that?
>>>
>>> I DO see the black window problem when clicking the maximize button in
>>> the window title bar. It also happens in Etoys (see
>>> http://tracker.squeakland.org/browse/SQ-400 ).
>>>
>>> - Bert -
>>>
>>>
>>>
>>
>>
>

[Attachment #6 (text/html)]

Removing the -xshm switch when executing the VM fixes this bug, which has to do with \
some kind of   issue with the use of X shared memory extensions and \
compiz.<div><br></div><div><div><a \
href="https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1025013">https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1025013</a><br>
 <br><div class="gmail_quote">On Tue, Jul 24, 2012 at 1:51 PM, Amos Blanton <span \
dir="ltr">&lt;<a href="mailto:amos@scratch.mit.edu" \
target="_blank">amos@scratch.mit.edu</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Previously I thought this bug only happened on 64 bit \
installations of Scratch, but we&#39;ve since seen it on 32 bit installations as \
well. It appears to happen only in Ubuntu&#39;s 12.04&#39;s (normal) 3d mode. If I \
login in 2d mode, window Scratch&#39;s window resizes just fine on my machine. <div>

<br></div><div>I&#39;ve filed a bug against Scratch in \
Ubuntu.</div><div><br></div><div><a \
href="https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1028562" \
target="_blank">https://bugs.launchpad.net/ubuntu/+source/scratch/+bug/1028562</a></div>
 <div class="HOEnZb"><div class="h5">
<div><br></div><div> <br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 8:50 AM, \
Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" \
target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div>On \
07.06.2012, at 14:44, Amos Blanton wrote:</div><br><blockquote type="cite">

<div>The shrinking only happens on my 64 bit system (12.04 LTS). Any resizing of the \
window (larger or smaller) triggers it.</div><div><br></div><div>You mentioned \
earlier that there were outstanding issues with ia64, so it&#39;s not too surprising. \
Actually - so far this and problems with the pulse-audio plugin are the only issues \
I&#39;ve encountered running Scratch on the 64 bit VM. Seems quite promising!</div>

</blockquote><div><br></div></div><div>You might want to check the resizing math. \
IIRC the VM tries to snap the window width to the next multiple of 4. Maybe that is \
not stable if a word is not 4 but 8 bytes long.</div><span><font \
color="#888888"><div>

<br></div><div><div><span \
style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;fon \
t-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:&#39;Lucida \
Grande&#39;;word-spacing:0px"><div style="font-family:Helvetica">

<span style="font-family:Helvetica">- Bert \
-</span></div></span></div></div></font></span><div><div><br></div><blockquote \
type="cite"><div><div class="gmail_quote">On Thu, Jun 7, 2012 at 8:16 AM, Bert \
Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" \
target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <br>
On 05.06.2012, at 21:49, Amos Blanton wrote:<br>
<br>
&gt; On Tue, Jun 5, 2012 at 2:45 PM, Bert Freudenberg &lt;<a \
href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt; \
wrote:<br> &gt;<br>
&gt;&gt; What was the Squeak display size before resizing? (print Display)<br>
&gt;<br>
&gt; wmctrl says it&#39;s: 1024 x 767.<br>
<br>
That&#39;s odd ;)<br>
<br>
&gt;&gt; What&#39;s your screen resolution, graphics card, and window manager?<br>
&gt;<br>
&gt; My laptop is docked, driving a display at 1680 x 1050 via hdmi, and its normal \
screen (1366 x 768), is turned off.<br> &gt;<br>
&gt; Graphics card:<br>
&gt; 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core \
Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA \
controller])<br> &gt;       Subsystem: Lenovo Device 21da<br>
&gt;<br>
&gt; Window Manager must be Unity/Gnome/ Compiz, or whatever is standard on Ubuntu \
12.04.<br> &gt;<br>
&gt; I should note that the testing I did on 32bits Ubuntu 12.04 was done in \
Virtualbox VM, using Miry&#39;s latest package: <a \
href="http://aula.edu.es/pool/main/s/scratch/" \
target="_blank">http://aula.edu.es/pool/main/s/scratch/</a><br>



<br>
I do not see the shrinking problem in Virtual Box using Ubuntu 12.04 LTE 32 bits, \
fully updated. How exactly would I have to resize to trigger that?<br> <br>
I DO see the black window problem when clicking the maximize button in the window \
title bar. It also happens in Etoys (see <a \
href="http://tracker.squeakland.org/browse/SQ-400" \
target="_blank">http://tracker.squeakland.org/browse/SQ-400</a> ).<br>



<span><font color="#888888"><br>
- Bert -<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote></div></div><br></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic