Wine1.7 from Ubuntu PPA can create only about 10% of the threads Wine normally can

Bug #1393196 reported by Adrian Kalla on 2014-11-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Maarten Lankhorst

Bug Description

Wine1.7 is from ppa:ubuntu-wine/ppa

Recently a Java application I do use using Windows Oracle JRE 8.0-25 on Wine started getting unstable with the following error:
"java.lang.OutOfMemoryError: unable to create new native thread". Currently I'm on Wine 1.7.30, but this problem must have started about 4-8 weeks ago with the then current Wine version on the PPA.

While trying to find the error, I did notice, that using the following simple Java program, I'm able to create over 1000 threads on: Wine1.6 from the Ubuntu PPA, Wine1.7.30 from the wine-compholio PPA and on all Wine 1.7's from PlayOnLinux before getting the above error, but on Wine1.7.30 from ppa:ubuntu-wine/ppa, I get this error after just 194 threads have been created.

The simple Java test program (it is attached to the bug as an already compiled JAR file):

public class test {
    public static void main(String[] args) {
        int i = 0;
            new Thread(new Runnable(){
                public void run() {
                    try {
                    } catch(InterruptedException e) { }
            i += 1;
            System.out.println("Thread: " + i);

I guess some recet change to the way the Ubuntu Wine package is being made must have caused this.

Adrian Kalla (adrian-kalla) wrote :
Adrian Kalla (adrian-kalla) wrote :

Forgot to mention: OS is Kubuntu 14.10 64 bit and the Oracle JRE is 32 bit.

Scott Ritchie (scottritchie) wrote :

This is a result of the pthread override patch Maarten's been working on that has been, at different times, enabled and disabled in the PPA.

no longer affects: wine (Ubuntu)
Changed in wine:
assignee: nobody → Scott Ritchie (scottritchie)
importance: Undecided → Medium
status: New → Triaged
assignee: Scott Ritchie (scottritchie) → Maarten Lankhorst (mlankhorst)
Adrian Kalla (adrian-kalla) wrote :

Any progress on this?

Maarten Lankhorst (mlankhorst) wrote :

Fix is available as

It will be part of the wine 1.7 ppa next time the patch series is refreshed.

Adrian Kalla (adrian-kalla) wrote :

Confirmed working with the Wine package version 1.7.34.

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

Other bug subscribers