Changes between Initial Version and Version 3 of Ticket #8761


Ignore:
Timestamp:
Jul 21, 2012, 5:22:48 PM (12 years ago)
Author:
anevilyak
Comment:

No problem, it should fail gracefully in that case instead of simply hitting the debugger though.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8761

    • Property Owner changed from korli to kallisti5
    • Property Status newassigned
    • Property Summary OpenGL Kits crashing.Software renderer should gracefully handle unsupported color spaces.
  • Ticket #8761 – Description

    initial v3  
    1 Hello,
    2 
    3 I am currently on the latest nightly hrev44370. I have found that opening applications like GLTeapot and Haiku 3D. I have chosen the debug option on both applications.
    4 
    5 '''GLTeapot''' gdb:
    6 {{{
    7 Reading symbols from /boot/system/add-ons/opengl/Legacy Software Rasterizer...done.
    8 Loaded symbols for /boot/system/add-ons/opengl/Legacy Software Rasterizer
    9 [tcsetpgrp failed in terminal_inferior: Invalid Argument]
    10 [Switching to team /boot/system/demos/GLTeapot (636) thread GLTeapot (636)]
    11 }}}
    12 
    13 '''gdb backtrace'''
    14 {{{
    15 (gdb) bt
    16 #0  0xffff0114 in ?? ()
    17 #1  0x00899fee in debugger () from /boot/system/lib/libroot.so
    18 #2  0x020c874a in MesaSoftwareRenderer::_SetupRenderBuffer ()
    19    from /boot/system/add-ons/opengl/Legacy Software Rasterizer
    20 #3  0x020c8501 in MesaSoftwareRenderer::_NewRenderBuffer ()
    21    from /boot/system/add-ons/opengl/Legacy Software Rasterizer
    22 #4  0x020c706f in MesaSoftwareRenderer::MesaSoftwareRenderer ()
    23    from /boot/system/add-ons/opengl/Legacy Software Rasterizer
    24 #5  0x020c6cea in instantiate_gl_renderer ()
    25    from /boot/system/add-ons/opengl/Legacy Software Rasterizer
    26 #6  0x0056274a in GLRendererRoster::CreateRenderer ()
    27    from /boot/system/lib/libGL.so
    28 #7  0x005621ab in GLRendererRoster::AddPath () from /boot/system/lib/libGL.so
    29 #8  0x00561fa7 in GLRendererRoster::AddDefaultPaths ()
    30    from /boot/system/lib/libGL.so
    31 #9  0x00561d0e in GLRendererRoster::GLRendererRoster ()
    32    from /boot/system/lib/libGL.so
    33 #10 0x00560220 in BGLView::BGLView () from /boot/system/lib/libGL.so
    34 #11 0x0020952d in ObjectView::ObjectView ()
    35 #12 0x0020bd31 in TeapotWindow::TeapotWindow ()
    36 #13 0x0020f2ad in TeapotApp::TeapotApp ()
    37 #14 0x0020f140 in main ()
    38 (gdb) [tcsetpgrp failed in terminal_inferior: Invalid Argument]
    39 }}}
    40 
    41 If you need the information from the haiku 3D crash too and the backtrace I can provide them just let me know. I figured it would be more of the same thing though. The hardware information is this:
    42 
    43 ''' Acer Aspire one '''
    44 {{{
    45 ~> listdev
    46 
    47 device Serial bus controller (SMBus) [c|5|0]
    48   vendor 8086: Intel Corporation
    49   device 27da: N10/ICH 7 Family SMBus Controller
    50 
    51 device Mass storage controller (IDE interface) [1|1|80]
    52   vendor 8086: Intel Corporation
    53   device 27c4: 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode]
    54 
    55 device Bridge (ISA bridge) [6|1|0]
    56   vendor 8086: Intel Corporation
    57   device 27b9: 82801GBM (ICH7-M) LPC Interface Bridge
    58 
    59 device Bridge (PCI bridge, Subtractive decode) [6|4|1]
    60   vendor 8086: Intel Corporation
    61   device 2448: 82801 Mobile PCI Bridge
    62 
    63 device Serial bus controller (USB controller, EHCI) [c|3|20]
    64   vendor 8086: Intel Corporation
    65   device 27cc: N10/ICH 7 Family USB2 EHCI Controller
    66 
    67 device Serial bus controller (USB controller, UHCI) [c|3|0]
    68   vendor 8086: Intel Corporation
    69   device 27cb: N10/ICH 7 Family USB UHCI Controller #4
    70 
    71 device Serial bus controller (USB controller, UHCI) [c|3|0]
    72   vendor 8086: Intel Corporation
    73   device 27ca: N10/ICH 7 Family USB UHCI Controller #3
    74 
    75 device Serial bus controller (USB controller, UHCI) [c|3|0]
    76   vendor 8086: Intel Corporation
    77   device 27c9: N10/ICH 7 Family USB UHCI Controller #2
    78 
    79 device Serial bus controller (USB controller, UHCI) [c|3|0]
    80   vendor 8086: Intel Corporation
    81   device 27c8: N10/ICH 7 Family USB UHCI Controller #1
    82 
    83 device Generic system peripheral [8|80|0]
    84   vendor 197b: JMicron Technology Corp.
    85   device 2384: xD Host Controller
    86 
    87 device Generic system peripheral [8|80|0]
    88   vendor 197b: JMicron Technology Corp.
    89   device 2383: MS Host Controller
    90 
    91 device Generic system peripheral (SD Host controller) [8|5|1]
    92   vendor 197b: JMicron Technology Corp.
    93   device 2381: Standard SD Host Controller
    94 
    95 device Generic system peripheral [8|80|0]
    96   vendor 197b: JMicron Technology Corp.
    97   device 2382: SD/MMC Host Controller
    98 
    99 device Bridge (PCI bridge, Normal decode) [6|4|0]
    100   vendor 8086: Intel Corporation
    101   device 27d6: N10/ICH 7 Family PCI Express Port 4
    102 
    103 device Network controller (Ethernet controller) [2|0|0]
    104   vendor 168c: Atheros Communications Inc.
    105   device 001c: AR242x / AR542x Wireless Network Adapter (PCI-Express)
    106 
    107 device Bridge (PCI bridge, Normal decode) [6|4|0]
    108   vendor 8086: Intel Corporation
    109   device 27d4: N10/ICH 7 Family PCI Express Port 3
    110 
    111 device Network controller (Ethernet controller) [2|0|0]
    112   vendor 10ec: Realtek Semiconductor Co., Ltd.
    113   device 8136: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
    114 
    115 device Bridge (PCI bridge, Normal decode) [6|4|0]
    116   vendor 8086: Intel Corporation
    117   device 27d2: N10/ICH 7 Family PCI Express Port 2
    118 
    119 device Generic system peripheral [8|80|0]
    120   vendor 197b: JMicron Technology Corp.
    121   device 2384: xD Host Controller
    122 
    123 device Generic system peripheral [8|80|0]
    124   vendor 197b: JMicron Technology Corp.
    125   device 2383: MS Host Controller
    126 
    127 device Generic system peripheral (SD Host controller) [8|5|1]
    128   vendor 197b: JMicron Technology Corp.
    129   device 2381: Standard SD Host Controller
    130 
    131 device Generic system peripheral [8|80|0]
    132   vendor 197b: JMicron Technology Corp.
    133   device 2382: SD/MMC Host Controller
    134 
    135 device Bridge (PCI bridge, Normal decode) [6|4|0]
    136   vendor 8086: Intel Corporation
    137   device 27d0: N10/ICH 7 Family PCI Express Port 1
    138 
    139 device Multimedia controller (Audio device) [4|3|0]
    140   vendor 8086: Intel Corporation
    141   device 27d8: N10/ICH 7 Family High Definition Audio Controller
    142 
    143 device Display controller [3|80|0]
    144   vendor 8086: Intel Corporation
    145   device 27a6: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
    146 
    147 device Display controller (VGA compatible controller, VGA controller) [3|0|0]
    148   vendor 8086: Intel Corporation
    149   device 27ae: Mobile 945GSE Express Integrated Graphics Controller
    150 
    151 device Bridge (Host bridge) [6|0|0]
    152   vendor 8086: Intel Corporation
    153   device 27ac: Mobile 945GSE Express Memory Controller Hub
    154 }}}
     1Currently, if one attempts to instantiate the mesa software renderer (legacy or new) in an unsupported color space (i.e. if the desktop is set to 8-bit color), the app will crash into the debugger. This should be handled a bit more gracefully. Simply removing the debugger() call doesn't appear to suffice though, since the return from _SetupRenderBuffer() is ignored, causing issues elsewhere later.