AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

After updgrade gtk2 rpm, some application not working

  • 1.  After updgrade gtk2 rpm, some application not working

    Posted Mon November 21, 2022 12:32 PM
    Hi, 
    We are upgraded gtk2 rpm and  other rpms as well. After upgraded all rpm with dnf, looks like some application like IBM Installation Manager, eclipse, Websphere installation gui was stopped after started installation process. Is there any lib we are missing or any other rpm needs to install to complete the installation work done? We have below rpm installed.

     # rpm -qa |sort
    AIX-rpm-7.2.5.103-1.ppc
    atk-2.20.0-3.ppc
    atk-devel-2.20.0-3.ppc
    bash-5.1.16-1.ppc
    bzip2-1.0.8-2.ppc
    ca-certificates-2021.2.52-3.ppc
    cairo-1.14.6-2waixX11.ppc
    cairo-devel-1.14.6-2waixX11.ppc
    check-0.13.0-1.ppc
    curl-7.83.1-1.ppc
    cyrus-sasl-2.1.28-1.ppc
    db-5.3.28-1.ppc
    dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    dnf-data-4.2.17-32_50.ppc
    expat-2.4.9-1.ppc
    expat-devel-2.4.9-1.ppc
    fontconfig-2.11.95-4.ppc
    fontconfig-devel-2.11.95-4.ppc
    freetype2-2.12.1-1.ppc
    freetype2-devel-2.12.1-1.ppc
    gdbm-1.23-1.ppc
    gdk-pixbuf-2.35.1-3waixX11.ppc
    gettext-0.21-2.ppc
    glib2-2.56.1-3.ppc
    glib2-devel-2.56.1-3.ppc
    gmp-6.2.1-1.ppc
    gnupg2-2.2.35-1.ppc
    gnutls-3.7.2-1.ppc
    gpgme-1.13.1-100.ppc
    gtk2-2.24.30-3waixX11.ppc  <<<<<<<<<<<<<<<<<<< getting all error, fatal display related error with new gtk2
    gtk2-devel-2.24.30-3waixX11.ppc
    gtk2-devel-docs-2.24.30-3waixX11.ppc
    harfbuzz-4.3.0-1.ppc
    info-6.7-1.ppc
    intltool-0.51.0-2.noarch
    jbigkit-libs-2.1-1.ppc
    json-c-0.15-2.ppc
    krb5-libs-1.18.5-2.ppc
    libXcursor-1.1.14-1.ppc
    libXcursor-devel-1.1.14-1.ppc
    libXdmcp-1.1.2-1.ppc
    libXft-2.3.2-4waixX11.ppc
    libXrender-0.9.8-3waixX11.ppc
    libXrender-devel-0.9.8-3waixX11.ppc
    libassuan-2.5.5-1.ppc
    libcomps-0.1.11-100.ppc
    libdnf-0.39.1-32_50.ppc
    libffi-3.4.2-1.ppc
    libgcc-8-1.ppc
    libgcc8-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    libgomp-8-1.ppc
    libgomp8-8.3.0-6.ppc
    libgpg-error-1.45-1.ppc
    libiconv-1.17-1.ppc
    libjpeg-9d-1.ppc
    libksba-1.6.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libnghttp2-1.46.0-1.ppc
    libpng-1.6.37-1.ppc
    libpng-devel-1.6.37-1.ppc
    librepo-1.11.0-100.ppc
    libsmartcols-2.34-100.ppc
    libsolv-0.7.9-32_51.ppc
    libssh2-1.10.0-1.ppc
    libstdc++-8-1.ppc
    libstdc++8-8.3.0-6.ppc
    libtasn1-4.16.0-1.ppc
    libtextstyle-0.21-2.ppc
    libtiff-4.4.0-1.ppc
    libunistring-0.9.10-1.ppc
    libwebp-1.0.2-1.ppc
    libxcb-1.14-1waixX11.ppc
    libxml2-2.9.14-1.ppc
    libyaml-0.2.5-1.ppc
    libzstd-1.5.2-1.ppc
    lzo-2.10-2.ppc
    ncurses-6.3-1.ppc
    nettle-3.7.3-1.ppc
    npth-1.5-1.ppc
    openldap-2.4.58-4.ppc
    p11-kit-0.23.22-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    pango-1.40.1-2waixX11.ppc
    pango-devel-1.40.1-2waixX11.ppc
    pinentry-1.0.0-1.ppc
    pixman-0.34.0-1.ppc
    pkg-config-0.29.2-2.ppc
    python-2.7.18-3.ppc
    python3-3.7.12-1.ppc
    python3-dnf-4.2.17-32_50.ppc
    python3-gpg-1.13.1-100.ppc
    python3-hawkey-0.39.1-32_50.ppc
    python3-libcomps-0.1.11-100.ppc
    python3-libdnf-0.39.1-32_50.ppc
    python3-librepo-1.11.0-100.ppc
    readline-8.1-1.ppc
    renderproto-0.11.1-1.ppc
    rpm-python3-4.15.1-32_1.ppc
    shared-mime-info-1.6-2.ppc
    sqlite-3.37.2-1.ppc
    unzip-6.0-3.ppc
    xcb-proto-1.14-1.ppc
    xz-libs-5.2.5-1.ppc
    zchunk-libs-1.1.4-101.ppc
    zlib-1.2.12-1.ppc
    zlib-devel-1.2.12-1.ppc
     #


    We have set our libpath like below as some of the rpm not finding their libpath and stop running.


    export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/bin:/opt/freeware/sbin:/usr/bin:$LIBPATH

    The error we are getting like below..


    :/CTGIM/software # ./install
    Install: Cannot open display:
    00:00.56 ERROR [main] org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory safeLogged
      Application error
      org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(SWT.java:4559)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:958)
        at org.eclipse.swt.widgets.Display.create(Display.java:942)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:174)
        ...
    Install: Cannot open display:
    Install:
    An error has occurred. See the log file
    /CTGIM/software/configuration/1668123274265.log.

    Below is the error we hit, when tried to install other application..

    :/opt/IBM/InstallationManager/eclipse # ./IBMIM

    IBM Installation Manager: Fatal IO error 73 (Connection reset by peer) on X server 10.240.217.117:0.0.

    The application '<unknown>' lost its connection to the display 10.240.217.117:0.0;

    most likely the X server was shut down or you killed/destroyed

    the application.


    All those above application and IBM installation manager, eclipse and websphere is working fine with our previous rpm is in place, I meant to say if we dont upgrade those rpm with dnf install and dnf update.

    Below are the working rpm list: (OLD)

    :/ # rpm -qa |sort
    AIX-rpm-7.2.5.103-15.ppc
    atk-1.12.3-2.ppc
    bash-4.3-8.ppc
    bash-doc-3.0-1.ppc
    cairo-1.8.8-1.ppc
    coreutils-5.2.1-1.ppc
    expat-2.0.1-1.ppc
    fontconfig-2.4.2-1.ppc
    freetype2-2.3.9-1.ppc
    gettext-0.10.40-6.ppc
    glib-1.2.10-2.ppc
    glib2-2.12.4-2.ppc
    gtk+-1.2.10-4.ppc
    gtk2-2.10.6-4.ppc <<<<<<<<<<<<<<<<<<<<<<< everything works fine, no fatal display error nothing.
    libjpeg-6b-6.ppc
    libpng-1.2.32-2.ppc
    libtiff-3.8.2-1.ppc
    lpar2rrd-agent-5.05-2.ppc
    openssl-0.9.7d-2.ppc
    openssl-devel-0.9.7d-2.ppc
    openssl-doc-0.9.7d-2.ppc
    pango-1.14.5-4.ppc
    pixman-0.12.0-3.ppc
    swiagent-2020.2.6.20131-b5170e0.ppc
    unzip-5.51-1.ppc
    xcursor-1.1.7-3.ppc
    xft-2.1.6-5.ppc
    xrender-0.9.1-3.ppc
    zlib-1.2.3-3.ppc
    / #


    We opened IBM support cases, and they said, it is some type of lib issue related to upgrade gtk2 and other rpms.

    Please help us to fixed the issue.

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------


  • 2.  RE: After updgrade gtk2 rpm, some application not working

    Posted Tue November 22, 2022 08:12 AM
    There is not much info here to figure out what is failing. 
    One thing you can do here is to run "/opt/freeware/bin/gtk-demo" after exporting the DISPLAY variable. If there are some library issues, it will be shown in the stdout.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: After updgrade gtk2 rpm, some application not working

    Posted Mon November 28, 2022 03:07 PM
    Hi, 
    We did as you suggested, 
    Its loading gtk-demo successfully with "/opt/freeware/bin/gtk-demo"

    But we get fatal error later one..

    :/opt/IBM/TDI/V7.2_32 # ./ibmditk
    Security Directory Integrator: Fatal IO error 73 (Connection reset by peer) on X server 10.240.xxx.xx:0.0.

    Please let us know how to resolved it.

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------



  • 4.  RE: After updgrade gtk2 rpm, some application not working

    Posted Tue November 29, 2022 01:54 AM
    Since gtk-demo is loading successfully, I think there are no library loading issues. 
    You need to debug the applications to figure out what is failing.

    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: After updgrade gtk2 rpm, some application not working

    Posted Wed November 30, 2022 10:33 AM

    Your LIBPATH shouldn't be pointing at bin directories - only lib, also always start it with /usr/lib

    Check the nofiles, you may be loading an unneeded library that opens a ton of descriptors.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 6.  RE: After updgrade gtk2 rpm, some application not working

    Posted Mon December 05, 2022 02:17 AM
    Hi,
    So do we need to change libpath? we have set it like below..
    export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/bin:/opt/freeware/sbin:/usr/bin:$LIBPATH

    But still some app can't start which was started fine with gtk2 lower version..

    :/opt/IBM/TDI/V7.2_32 # ./ibmditk

    !ENTRY org.eclipse.osgi 4 0 2022-11-21 23:40:34.221

    !MESSAGE Application error

    !STACK 1

    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

            at org.eclipse.swt.SWT.error(SWT.java:4387)

            at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)


    We have below gtk2 version installed..


    gtk2-2.24.30-3waixX11.ppc  
    gtk2-devel-2.24.30-3waixX11.ppc
    gtk2-devel-docs-2.24.30-3waixX11.ppc

    Please let me know how to fix this.

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------



  • 7.  RE: After updgrade gtk2 rpm, some application not working

    Posted Mon December 05, 2022 05:04 AM
    As I said:
    - Start your LIBPATH with /usr/lib
    - Don't add 'bin' directories to LIBPATH

    Also: never assume LIBPATH is defined

    export LIBPATH=/usr/lib:/opt/freeware/lib:/opt/freeware/lib64

    Check your file descriptor limits: uname -a

    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 8.  RE: After updgrade gtk2 rpm, some application not working

    Posted Mon December 05, 2022 10:15 AM
    Hi,
    Still having similar error..

    /opt/IBM/TDI/V7.2_32 # ./ibmditk
    Miadmin:
    An error has occurred. See the log file
    /opt/IBM/TDI/V7.2_32/ce/eclipsece/configuration/1670253043265.log.
    :/opt/IBM/TDI/V7.2_32 #
    :/opt/IBM/TDI/V7.2_32 #
    :/opt/IBM/TDI/V7.2_32 # more ce/eclipsece/configuration/1670253043265.log
    !SESSION 2022-12-05 09:10:42.531 -----------------------------------------------
    eclipse.buildId=unknown
    java.fullversion=8.0.5.30 - pap3280sr5fp30-20190207_01(SR5 FP30)
    JRE 1.8.0 AIX ppc-32-Bit 20190124_408237 (JIT enabled, AOT enabled)
    OpenJ9 - 9c77d86
    OMR - dad8ba7
    IBM - e2996d1
    BootLoader constants: OS=aix, ARCH=ppc, WS=gtk, NL=en_US
    Command-line arguments: -os aix -ws gtk -arch ppc

    !ENTRY org.eclipse.osgi 4 0 2022-12-05 09:10:46.235
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]  
    at org.eclipse.swt.SWT.error(SWT.java:4387)
    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)

    That gtk_init_check () failed error still comming.

    Thanks,

    ------------------------------
    Harley AIX
    ------------------------------



  • 9.  RE: After updgrade gtk2 rpm, some application not working

    Posted Mon December 05, 2022 10:33 AM

    Make sure that you can open the DISPLAY.  (try with xterm).

    On ssh, use '-Y' instead of '-X'.

    Beyond this, I have no more ideas.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------