The tale of a broken GUI

  • bimmo_devices
    4th Apr 2015 Member 0 Permalink

    I have successfully scons-ed powder toy on Ubuntu Linux, as recommended by jacob1 in "A search for a missing header". TPT has been built and runs well. A few minor issues remain, perhaps platform specific? TPT complains in the following way:

     

        X Error of failed request:  BadValue (integer parameter out of range for operation)
          Major opcode of failed request:  129 (XFree86-VidModeExtension)
          Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
          Value in failed request:  0x3c00003
          Serial number of failed request:  245
          Current serial number in output stream:  247

     

    Similar things happen in every run of TPT, but seems to be harmless enough: there are no crashes. A slightly more annoying problem has to do with full screen mode. In Ubuntu, it seems, TPT has little control over the resolution. After one go at reducing the screen resolution and failing to reset it, TPT seems to have given up on trying. No problems - I wrote a script to manually set and unset low resolution using xrandr.

     

    But the worst problem has to do with the mouse restrictions. In fullscreen mode, it seems that I cannot click the 'next' button in the online save previewer, nor can I prompt the right element menu to switch between categories. Is this problem common? How might it be fixed? I am not aquainted with TPT source. Where would I be without the highly interesting Second Page!?

     

        Further investigation shows that the mouse problem is general: A strip on the right side of the screen is unresponsive to the mouse. The problem only applies to fullscreen mode.

    Edited 2 times by bimmo_devices. Last: 4th Apr 2015
  • Factorial
    4th Apr 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacksonmj
    4th Apr 2015 Developer 0 Permalink

    I'm having difficulty reproducing this...

     

    If I boot a 64 bit Ubuntu 14.10 live CD in a virtual machine and compile TPT, it seems to work fine. No X errors, fullscreen works, I can click anywhere.

     

    Which version of Ubuntu? What is your screen resolution (the physical resolution, and the resolution you set it to manually for fullscreen mode)? Are you using multiple monitors? What's the furthest right coordinate that does respond to mouse clicks (try drawing some dust in different places)?

    Edited 3 times by jacksonmj. Last: 4th Apr 2015
  • bimmo_devices
    4th Apr 2015 Member 0 Permalink

    OK, heres some info:

        Ubuntu 12.04 running off of a bootable USB, AMD64 architecture, compiled as such.

        My script sets the resolution to 640x480 (TPT fits as it would on Windows) and then back to 1366x768 (recommended in System Settings).

        Single monitor Acer netbook... other hardware details should be irrelevant? My X server bolt-on thing is the default LightDM (I am an expert of course).

     

        <MAGIC> After a restart today (Merry Easter!) TPT seems to be working fine... The mouse is free and TPT is responsive. I will monitor the X errors and report back soon.

     

        <UnMAGIC> And... it broke again. Same mouse error and the auto fullscreen is still not working. On the canvas, the mouse can reach X:572, the zoom tool allows access to higher x coordinates, so the problem lies with the mouse and not just the canvas cursor.

     

        Here is a collection of errors:


    ========
    Sun Apr  5 09:09:26 EST 2015
    ========
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  129 (XFree86-VidModeExtension)
      Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
      Value in failed request:  0x3a00003
      Serial number of failed request:  197
      Current serial number in output stream:  199

    ========
    Sun Apr  5 09:09:49 EST 2015
    ========
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  129 (XFree86-VidModeExtension)
      Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
      Value in failed request:  0x3600003
      Serial number of failed request:  196
      Current serial number in output stream:  198

    ========
    Sun Apr  5 09:10:15 EST 2015
    ========
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  129 (XFree86-VidModeExtension)
      Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
      Value in failed request:  0x3600003
      Serial number of failed request:  197
      Current serial number in output stream:  199

    ========
    Sun Apr  5 09:12:55 EST 2015
    ========
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  129 (XFree86-VidModeExtension)
      Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
      Value in failed request:  0x3600003
      Serial number of failed request:  201
      Current serial number in output stream:  203

    Edited 2 times by bimmo_devices. Last: 4th Apr 2015
  • FeynmanLogomaker
    4th Apr 2015 Member 0 Permalink

    Just curious, why are you still running 12.04?

  • bimmo_devices
    5th Apr 2015 Member 0 Permalink

    My internet is slow and its the only image I have. It took 3 hours to install TPT from the command line. $60 AUS for 4 GB every month, plus shaped internet when I use too much. pitiful. Think I should update? Maybe I'll find a torrent.

    Edited once by bimmo_devices. Last: 4th Apr 2015
  • FeynmanLogomaker
    5th Apr 2015 Member 0 Permalink

    honestly if your internet costs that much it's not really worth the update

  • bimmo_devices
    5th Apr 2015 Member 0 Permalink

    The plot thickens... The fullscreen mouse error occurs when I Run in Terminal my startup script (the double click option) but NOT when I simply Run. Running TPT directly doesn't invoke fullscreen properly.

     

    The script:

     

        #! /bin/bash
        xrandr -s 640x480
        echo "" >> stderr
        echo "========" >> stderr
        date >> stderr
        echo "========" >> stderr
        ./powder64 > stdout 2>> stderr
        xrandr -s 1366x768

     

    I have no clue as to what's happening.