hangs in Windows batch file (.cmd) calling wmic

Bug #938410 reported by Andrew Ziem on 2012-02-22
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

BleachBit 0.9.1, depending on version of Windows, uses wmic to find out whether a process like Firefox is running. Apparently this freezes inside a batch file.


ROCKNROLLKID (slinger1410) wrote :

Tagging as incomplete. The link provided no longer exists.

Changed in bleachbit:
status: New → Incomplete
Andrew Ziem (ahziem1) wrote :

The link is broken because of link wrapping
Here is the link again, shorter


There are no more reports like this, so maybe it was idiosyncratic to the user's system

Race (relay12) wrote :

I started getting wmic hang in a batch script Today on a one machine. Entered "wmic" in cmd.exe window at it also was frozen too. At a guess some problem with WMI service . I note On April 2 an "auto update retrieval of third-party root list sequence number" is in event log and a few messages about eventid 36876 return code 0x80096004 in event log today both struck me as unusual. I
have not idea why I would get that last message after googling it meaning.

Never had wmic issue before. After I rebooted issue disappeared. If it happens again I will add information.

Race (relay12) wrote :

I have found two sites suggesting using " wmic .... <NUL" (redirecting stdin to null) for use in scripts to prevent hanging. That would not help cmd.exe prompt.

Race (relay12) wrote :

I have changed any batch script code to include this:
     <NUL wmic /interactive:off process ...
Just in case it makes a difference.

Andrew Ziem (ahziem1) on 2016-04-04
Changed in bleachbit:
status: Incomplete → New
ROCKNROLLKID (slinger1410) wrote :

Tagged for 1.14 to explore Race's issue with wmic.

Changed in bleachbit:
milestone: none → 1.14
Andrew Ziem (ahziem1) wrote :

I removed WMIC.

Please test build BleachBit 1.13.377 or later from http://ci.bleachbit.org and please report your results here

Changed in bleachbit:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers