Ticket #137 (closed defect: worksforme)

Opened 18 months ago

Last modified 3 weeks ago

mozrunner fails in QueryInformationJobObject on Windows

Reported by: nriley Owned by: mikeal
Priority: major Milestone: future
Version: Keywords:
Cc: com-getwindmill@sabi.net Dependencies:

Description

C:\Documents and Settings\njriley>windmill shell firefox http://...
Traceback (most recent call last):
  File "c:\Python25\Scripts\windmill-script.py", line 8, in <module>
    load_entry_point('windmill==0.9.0', 'console_scripts', 'windmill')()
  File "c:\python25\lib\site-packages\windmill-0.9.0-py2.5.egg\windmill\bin\windmill_bin.py", line 52, in main
    admin_lib.command_line_startup()
  File "c:\python25\lib\site-packages\windmill-0.9.0-py2.5.egg\windmill\bin\admin_lib.py", line 329, in command_line_startup
    shell_objects = setup()
  File "c:\python25\lib\site-packages\windmill-0.9.0-py2.5.egg\windmill\bin\admin_lib.py", line 163, in setup
    shell_objects_dict['browser'] = getattr(shell_objects, browser[0].lower())()
  File "c:\python25\lib\site-packages\windmill-0.9.0-py2.5.egg\windmill\bin\shell_objects.py", line 44, in start_firefox
    controller.start()
  File "c:\python25\lib\site-packages\mozrunner-0.5-py2.5.egg\mozrunner\runner.py", line 134, in start
    self.process_handler = run_command(self.command, self.mozilla_env)
  File "c:\python25\lib\site-packages\mozrunner-0.5-py2.5.egg\mozrunner\runner.py", line 62, in run_command
    return killableprocess.Popen(cmd, **kwargs)
  File "c:\Python25\lib\subprocess.py", line 594, in __init__
    errread, errwrite)
  File "c:\python25\lib\site-packages\mozrunner-0.5-py2.5.egg\mozrunner\killableprocess.py", line 158, in _execute_child
    p = winprocess.QueryInformationJobObject(self._job, 8)['BasicInfo']['ActiveProcesses']
pywintypes.error: (1, 'QueryInformationJobObject', 'Incorrect function.')

Firefox does successfully launch, but Windmill isn't running by the time it tries to load a page. Launching IE works fine.

This is Python 2.5.2 on Windows XP 64-bit (though I am using a 32-bit Python and Firefox).

Change History

Changed 18 months ago by nriley

  • cc com-getwindmill@sabi.net added

Changed 18 months ago by mikeal

Can you give some more detail about your OS.

We have a lot of people using this, across a few projects, and nobody else can reproduce this error.

Changed 18 months ago by mikeal

Oh, hehe, I see you already stated your OS. This may be a 64bit specific issue or possibly a conflict with win32lib on 64bit.

-Mikeal

Changed 18 months ago by mikeal

  • milestone changed from triage to 1.0

I'll try to find a fix for this in the short term.

Changed 16 months ago by mikeal

  • milestone changed from 1.0 to future

I still can't reproduce this so I'm going to have to Future it until someone can get me access to a stable repro.

Changed 8 months ago by adam

  • status changed from new to closed
  • resolution set to worksforme

Can't repro either, running tests on windows all over the place.

Changed 3 weeks ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.