Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100209 - blender 2.37 starts weird on first display
Summary: blender 2.37 starts weird on first display
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 04:57 UTC by Pawel Madej aka Nysander
Modified: 2005-07-30 08:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Madej aka Nysander 2005-07-25 04:57:52 UTC
When i start first display with startx and start blender i got startimage and my
background below and when i move mouse at the screen only buttons (that change
color on mouse over) appears. i do not see main screen (looks like not loading
fully. But when i start second display with "startx -- :1" it starts ok.

bellow are emerge info and my xorg.conf

Reproducible: Always
Steps to Reproduce:
1. startx
on X 
2. blender (looking weird - not loaded to the end)
from other console
3. startx -- :1
4. blender (works ok)
Actual Results:  
on 1st display crashed blender
on 2nd working ok

Expected Results:  
normal work of blender at 1st display

#emerge info

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Pentium III (Coppermine)
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -m32 -pipe -msse -mmmx -s -ffast-math -funroll-loops
-mfpmath=sse,387 -ftracer -fforce-addr -fprefetch-loop-arrays -DG_DISABLE_CHEC
KS -DG_DISABLE_CAST_CHECKS -DNDEBUG -DG_DISABLE_ASSERT -z combreloc
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/initng /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -m32 -pipe -msse -mmmx -s -ffast-math
-funroll-loops -mfpmath=sse,387 -ftracer -fforce-addr -fprefetch-loop-arrays
-DG_DISABLE_CH
ECKS -DG_DISABLE_CAST_CHECKS -DNDEBUG -DG_DISABLE_ASSERT -z combreloc"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distclean distlocks sandbox sfperm sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo  http://ftp-stu
d.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.ITDNet.net/gentoo"
LANG="pl"
LC_ALL="pl_PL"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 apm avi berkdb bitmap-fonts bzlib crypt cups
curl dba dbase divx4linux dlz emboss encode esd exif foomaticdb fortran ftp gd 
gdbm gif gpm gtk gtk2 iconv imlib irda java jikes jpeg junit ldap libg++ libwww
local mad mhash mikmod mime mmx mmx2 motif mozilla mozsvg mp3 mpeg mpm-worker m
ysql ncurses nls odbc ogg oggvorbis opengl openssh oss pam pcntl pcre pdflib
perl php pic png posix postgres python qt quicktime readline sdl session simplexml
 slang sndfile soap sockets spell spl sse2 ssl svg svga tcpd threads tiff
tokenizer truetype truetype-fonts trutype type1-fonts unicode usb vhosts vorbis
xchat
text xml xml2 xmlrpc xpm xsl xv xvid zlib linguas_pl userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY

#xorg.conf

Section "Module"
   Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

    Load        "type1"
    Load        "freetype"

    Load       "glx"
#    Load       "dri"
EndSection

Section "Files"

    RgbPath     "/usr/lib/X11/rgb"

    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"


#    ModulePath "/usr/X11R6/lib/modules"

EndSection

Section "ServerFlags"

#    Option "NoTrapSignals"
#    Option "DontVTSwitch"
#    Option "DontZap"
#    Option "Dont Zoom"
#    Option "DisableVidModeExtension"
#    Option "AllowNonLocalXvidtune"
#    Option "DisableModInDev"
#    Option "AllowNonLocalModInDev"
EndSection

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

#    Option     "Protocol"      "Xqueue"
    Option "AutoRepeat" "500 30"
#    Option     "Xleds"      "1 2 3"
#    Option "LeftAlt"     "Meta"
#    Option "RightAlt"    "ModeShift"
#    Option "XkbVariant"  "nodeadkeys"
#    Option "XkbOptions"  "ctrl:swapcaps"
#    Option "XkbVariant"  ""
#    Option "XkbOptions"  ""
#    Option "XkbDisable"

    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "pl"

EndSection

Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "Auto"
    Option "Device"      "/dev/input/mice"

#    Option "Resolution"        "256"
#    Option "Protocol"  "Xqueue"
#    Option "BaudRate"  "9600"
#    Option "SampleRate"        "150"
#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"
#    Option "ChordMiddle"
     Option "ZAxisMapping" "4 5"

EndSection

Section "Monitor"

    Identifier  "LCD"

    HorizSync   31.5 - 48.5
    VertRefresh 50-90

EndSection

Section "Device"
    Identifier  "SIS"
    Driver      "sis"
        # unsupported card
    VideoRam    65536
    # Insert Clocks lines here if appropriate
    
#    Option "DRI" "yes"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "SIS"
    Monitor     "LCD"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

 Section "DRI"
    Mode 0666
 EndSection
Comment 1 Pawel Madej aka Nysander 2005-07-25 05:59:08 UTC
i've done upgrade to 2.37a but it also crash in the same way
Comment 2 Pawel Madej aka Nysander 2005-07-27 00:00:44 UTC
i got recompiled xorg & blender with these flags: C[XX]FLAGS="-O3
-march=pentium3 -pipe -fomit-frame-pointer -fforce-addr" and the problem is the
same.

as i noticed only one difference in X server messages. On second display (startx
-- :1 after startx) there is such an error:
(EE) SIS(0): [dri] DRIScreenInit failed. Disabling DRI.
Comment 3 Luca Barbato gentoo-dev 2005-07-27 02:15:07 UTC
Looks like a DRI issue
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-27 02:30:22 UTC
(In reply to comment #3)
> Looks like a DRI issue

Doesn't make sense, because the posted xorg.conf has Load "dri" commented out,
therefore disabled DRI.
Comment 5 Pawel Madej aka Nysander 2005-07-27 03:58:15 UTC
i give Xserver messages at start:

First display:
nysander@localhost ~ $ startx


X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.11-gentoo-r6 i686 [ELF]
Current Operating System: Linux localhost 2.6.11-gentoo-r6 #2 SMP Mon May 9
18:32:20 CEST 2005 i686
Build Date: 26 July 2005
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 12:43:20 2005
(==) Using config file: "/etc/X11/xorg.conf"
Using vt 7
BScreen::BScreen: managing screen 0 using visual 0x22, depth 24


Second display:
nysander@localhost ~ $ startx -- :1

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.11-gentoo-r6 i686 [ELF]
Current Operating System: Linux localhost 2.6.11-gentoo-r6 #2 SMP Mon May 9
18:32:20 CEST 2005 i686
Build Date: 26 July 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Wed Jul 27 12:43:45 2005
(==) Using config file: "/etc/X11/xorg.conf"
Using vt 8
(EE) SIS(0): [dri] DRIScreenInit failed. Disabling DRI.
BScreen::BScreen: managing screen 0 using visual 0x22, depth 24

I also dont know why dri tries to load and second display cause i got in xorg.conf 

# Load "dri"

Other weird situation is when i hash this section:

Section "DRI"
   Mode 0666
EndSection
                                                      
When it is hashed i got errors from libGL saying:

libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering

and then blender starts on first display but it shows only half of all vertex on
every model i've done (for ex. i make square from two triangles so i see only
one triangle)

other software also give libGL error then but runs rather good
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2005-07-29 16:49:43 UTC
(From the xorg.conf video driver section)
#    Option "DRI" "yes"

Maybe the option defaults to "yes" and forces bad behavior?  Have you tried
'Option "DRI" "no"'?
Comment 7 Pawel Madej aka Nysander 2005-07-30 06:58:05 UTC
I tried it now and blender works as i wanted.

Great thx for suggestion

Option "DRI" "no" 

resolved my problem.
Comment 8 Joshua Baergen (RETIRED) gentoo-dev 2005-07-30 08:11:07 UTC
Marking INVALID since it was a configuration issue, although I'm unsure why that
option would override the X Load line...
Comment 9 Pawel Madej aka Nysander 2005-07-30 08:47:50 UTC
it is more confusing because that option is hashed and load dri is also hashed
... but dri loads.