#79 HUUUUUGE windows

closed-wont-fix
nobody
Cinelerra (81)
5
2003-10-13
2003-07-30
Jens Seidel
No

Hi all,

I compiled cinelerra-1.1.6 on my Debian Sid system
and get large windows when I start it. The window
sizes are 32655 x 32638 pixel (not micro or nano
pixel)! That's approximatly 2^15 = 32768, so I assume
a wrong cast or something similar is the reason.

I was lucky and found the xwit tool which allows me to
change the size to proper values in my window
manager (fvwm 2.4.16):

$ xwit -resize 1000 500 -names "Cinelerra"

Maybe it a good idea to analyze compiler warnings?
I got many warnings, but no critical ones. Examples:

libavc/libavc1394/avc1394_simple.c:56: Warnung:
integer constant is too large for "long" type

libavc/librom1394/rom1394_internal.h:27:7: Warnung:
no newline at end of file

cp: Warning: Source file
ť../plugins/defaulttheme/data/magnify.pngŤ specified
more than once

gcc -c `cat i686/c_flags` audio/ac3.c -o
i686/audio/ac3.o
cc1: Warnung: -malign-loops is obsolete, use
-falign-loops
cc1: Warnung: -malign-jumps is obsolete, use
-falign-jumps
cc1: Warnung: -malign-functions is obsolete, use
-falign-functions

freetype-2.0.4/src/base/ftobjs.c:304: warning:
dereferencing type-punned pointer will break
strict-aliasing rules

If CFLAGS depends on the compiler version, using
automake would be a nice solution. So it would be
possible to solve many other problems too, such as
hard coded installation paths in various Makefiles, ...

Jens

Discussion

  • Andraz Tori
    Andraz Tori
    2003-08-01

    Logged In: YES
    user_id=20871

    i dunno, but try using a unofficial build for debian
    unstable...
    http://www.kiberpipa.org/~minmax/cinelerra/builds/sid/

    i can confirm for sawfish and metacity window managers, that
    windows are of normal size

    as you seem to know C... you might try to find out what
    happens more precisely

     
  • Jens Seidel
    Jens Seidel
    2003-08-01

    Logged In: YES
    user_id=187131

    Thanks for your comment. I tried your version too and got
    the same window sizes.

    The last time I forgot to mention that I get the following
    error message when I start cinelerra:

    BC_WindowBase::reposition_window this->h == -705

    But the problem seems to be related to the fvwm window
    manager. Metacity, KDE and XFce work great.

    I suggest the following workaround if fvwm is used:
    Create ~/.bcast/Cinelerra_rc with the following content
    before you start the program the first time:

    AWINDOW_W 400
    AWINDOW_H 400
    MWINDOW_X -403
    MWINDOW_Y 92
    MWINDOW_W 706
    MWINDOW_H 400
    LWINDOW_X 1500
    LWINDOW_Y 0
    LWINDOW_W 700
    LWINDOW_H 400
    VWINDOW_X -413
    VWINDOW_Y 67
    VWINDOW_W 506
    VWINDOW_H 402
    CWINDOW_X -282
    CWINDOW_Y 34
    CWINDOW_W 507
    CWINDOW_H 400

    I do not know whether it's important or not, but I use a
    virtual resolution in X11 (virtual keyword in XF86Config).

    (Since this problem is related to the window manager, I will
    not try to resolve it, I do not know the API.)

    Jens

     
  • Logged In: YES
    user_id=83549

    Not reproducable on Gnome, KDE, or fvwm.

     
    • status: open --> closed-wont-fix
     
  • Jens Seidel
    Jens Seidel
    2003-10-13

    Logged In: YES
    user_id=187131

    The problem still exists!

    I tried now cinelerra-1.1.7 instead of cinelerra-1.1.6
    (and I need to change only 1 line to make it compile,
    instead of 4 as in 1.1.6) and fvwm 2.4.16-2.

    gcc (GCC) 3.3.2 20030908 (Debian prerelease)
    libc-2.3.2.so

    To reproduce this make sure:
    * to use fvwm (other WM work fine)
    * remove ~/.bcast first, if there exist ~/.bcast/
    Cinelerra_rc with proper size strings you will not be able
    to reproduce the bug.

    I found the following values in Cinelerra_rc after the
    first start:
    MWINDOWWIDTH 32755
    MWINDOWHEIGHT 32738
    [snip]
    MWINDOW_X -933
    MWINDOW_Y 182
    MWINDOW_W 32755
    MWINDOW_H 32738
    LWINDOW_X 1500
    LWINDOW_Y 0
    LWINDOW_W 100
    LWINDOW_H 600
    VWINDOW_X -941
    VWINDOW_Y 86
    VWINDOW_W 32755
    VWINDOW_H 32738
    [snip]