Menu

resize or close application

Help
2007-09-25
2013-04-23
  • Bruno Sampayo

    Bruno Sampayo - 2007-09-25

    When I resize or close the application, the  gizmod daemon stop and I need to start gizmod again. Example  with : firefox

    GizmoDaemon v3:4 -=- (c) 2007, Tim Burrell <tim.burrell@gmail.com>
    Debian Etch
    kernel: 2.6.18 i686 GNU

    Someone can help me?

    Thanks for all,
    Bruno Sampayo

     
    • Tim Burrell

      Tim Burrell - 2007-09-25

      Whoa... when you resize firefox, gizmo daemon stops running?  Does it crash, or quit?   Can you run gizmod in debug mode (-g) and paste the output?

      Thanks,

      Tim.

       
    • Bruno Sampayo

      Bruno Sampayo - 2007-10-02

      When I receiver an event from remote control and sending for application, after that close the application, (example: Firefox or amarok), gizmod crash.

      _/*Sending Command form keyboard to application:*/_

      Gizmod.Keyboards[0].createEvent(GizmoEventType.EV_KEY, valor )

      _/*Gizmod debug: -g:*/_

      onEvent: WindowFocus [FocusIn] -- <WindowTitle:Menu> <FormalName:python2.4> <Class:python2.4>
      Attached to Sound Card [hw:0] -- USB  AUDIO
      onEvent: SoundCard -- SoundCardAttach [USB  AUDIO  ]
      onEvent: SoundCard -- MixerElementAttach [USB  AUDIO  ] <PCM>
      onEvent: SoundCard -- MixerElementChange [USB  AUDIO  ] <PCM> Unmute
      onEvent: SoundCard -- MixerElementChange [USB  AUDIO  ] <PCM> Vol: 0.0
      onEvent: SoundCard -- MixerElementChange [USB  AUDIO  ] <PCM> Vol: 80.0023345947
      onEvent: SoundCard -- MixerElementAttach [USB  AUDIO  ] <Mic>
      onEvent: SoundCard -- MixerElementChange [USB  AUDIO  ] <Mic>
      onEvent: SoundCard -- MixerElementChange [USB  AUDIO  ] <Mic>
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ffa25d] setaCima <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x0
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ffa25d] setaCima <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x0
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ffa25d] setaCima <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x0
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ffa25d] setaCima <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x0
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ffa25d] setaCima <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_UP> c: 0x67 v: 0x0
      [R] onEvent: LIRC -- /dev/lircd | [0000000000ff22dd] enter <samurai.conf> Repeat: 0
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_ENTER> c: 0x1c v: 0x1
      onEvent: Standard -- /dev/input/event0 | [EV_KEY] <KEY_ENTER> c: 0x1c v: 0x0
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:(No Name)> <FormalName:xv> <Class:MPlayer>
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:xfwm4> <FormalName:xfwm4> <Class:Xfwm4>
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:(No Name)> <FormalName:xv> <Class:MPlayer>
      onEvent: WindowFocus [FocusOut] -- <WindowTitle:xfwm4> <FormalName:xfwm4> <Class:Xfwm4>
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:Bem-vindo ao Gmail - Mozilla Firefox> <FormalName:Gecko> <Class:Firefox-bin>
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:xfwm4> <FormalName:xfwm4> <Class:Xfwm4>
      onEvent: WindowFocus [FocusIn] -- <WindowTitle:Bem-vindo ao Gmail - Mozilla Firefox> <FormalName:Gecko> <Class:Firefox-bin>
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x6
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x13
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xd
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xf
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x5
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x12
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x8
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x5
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x6
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x5
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x7
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x7
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x8
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0xb
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x9
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x8
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x6
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x3
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x3
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x4
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x6
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xd
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xd
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x10
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x11
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xf
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xc
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0xa
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x7
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x3
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x2
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x0 Val: -0x1
      onEvent: Standard -- /dev/input/event4 | [EV_REL] c: 0x1 Val: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_KEY] <BTN_LEFT> c: 0x110 v: 0x1
      onEvent: Standard -- /dev/input/event4 | [EV_KEY] <BTN_LEFT> c: 0x110 v: 0x0
      X Error of failed request:  BadWindow (invalid Window parameter)
      Major opcode of failed request:  20 (X_GetProperty)
      Resource id in failed request:  0xe04056
      Serial number of failed request:  522
      Current serial number in output stream:  522
      ?

      Thanks,
      Bruno Sampayo

       
      • Tim Burrell

        Tim Burrell - 2007-10-11

        I spent some time trying to re-create this and I can't.

        Would it be possible for you to compile gizmod with debug symbols, and generate a stack trace?

        Compile with CFLAGS="-g3 -O0":

        CFLAGS="-g3 -O0" ./configure --prefix=/usr (other configure options if desired)
        make && make install

        then:

        ulimit -c unlimited
        gizmod -g

        <make gizmod crash>

        gdb /usr/bin/gizmod core
        bt

        Then paste the results of 'bt'.

        Thanks!

        Tim.

         
    • Bruno Sampayo

      Bruno Sampayo - 2007-10-11

      Hey Tim
      I'm using this package on my debian platform:
      http://downloads.sourceforge.net/gizmod/gizmod_3.3-0ubuntu1_i386.deb?use_mirror=ufpr

      Because when I tried to compile the gizmod using this tar:
      http://downloads.sourceforge.net/gizmod/gizmod-3.3.tar.gz?use_mirror=ufpr

      I got this following error:

      Command:
      # CFLAGS="-g3 -O0" ./configure --prefix=/usr --sysconfdir=/etc --with-boost

      log:

      checking if g++ supports -c -o file.o... yes
      checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      appending configuration tag "F77" to libtool
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... yes
      checking for g77 option to produce PIC... -fPIC
      checking if g77 PIC flag -fPIC works... yes
      checking if g77 static flag -static works... yes
      checking if g77 supports -c -o file.o... yes
      checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      checking sys/inotify.h usability... no
      checking sys/inotify.h presence... no
      checking for sys/inotify.h... no
      configure: error: Cannot find sys/inotify.h! -- You must have Linux kernel >= 2.6.13

      Do you know what I need to install or configure to follow this compilation?

      More Info about my platform:
      GizmoDaemon v3:3 -=- (c) 2007, Tim Burrell <tim.burrell@gmail.com>
      Debian Etch
      kernel: 2.6.18 i686 GNU

      Thanks for all,
      Bruno Sampayo
      bruno@samurai.com.br

       
      • Tim Burrell

        Tim Burrell - 2007-10-11

        Hey Bruno,

        Thanks for delving into this.  If we can track this down, it'll likely benefit more people than just you!

        You need to install the development packages for boost, xorg, and the kernel sources.  See this page: http://gizmod.wiki.sourceforge.net/Compile+from+Source

        It may contain helpful hints!

        Let me know how it goes!

        Thanks,

        Tim.

         

Log in to post a comment.