https://bugs.winehq.org/show_bug.cgi?id=56843
Bug ID: 56843
Summary: wineandroid: fixing output on recent android versions.
Product: Wine
Version: unspecified
Hardware: aarch64
OS: Android
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: twaikyont(a)gmail.com
Currently wineandroid relies on Gralloc V1 which is not an option on recent
android versions.
There is other acceptable solution.
You can pass Surface through Binder API so you will get ANativeWindow (or at
least Surface which can be converted to ANativeWindow) directly from Activity
instead of creating it with broken `alloc_win_data`.
Binder API is not available in regular processes, but you can use it in Java.
You can start java code from your Wine apk installed to system like
```
export CLASSPATH=<path to apk>
export LD_PRELOAD=<path to apk>!/lib/<ABI>/libwine.so # wher ABI is something
you can get with `Build.SUPPORTED_ABIS[0]`
/system/bin/app_process / your.class.name :0
```
And JVM will start the `static void main(String[] args);` from
`your.class.name`.
Getting path to apk will be like
```
/**
* Get the apk path of this application.
* @param context any context (e.g. an Activity or a Service)
* @return full apk file path, or null if an exception happened (it should not
happen)
*/
public static String getApkName(Context context) {
String packageName = context.getPackageName();
PackageManager pm = context.getPackageManager();
try {
return pm.getApplicationInfo(packageName, 0).publicSourceDir;
} catch (Throwable x) {
}
return null;
}
```
`main` function can be fully native so you can simply pass control to native
code right after starting process.
Of course wine's main executable should be built as a library to let JVM load
it via `System.loadLibrary`
C version of `main` can not use Java's `args` so it should be converted like
```
JNIEXPORT jboolean JNICALL
Java_wine_CmdEntryPoint_start(JNIEnv *env, __unused jclass cls, jobjectArray
args) {
pthread_t t;
// execv's argv array is a bit incompatible with Java's String[], so we do
some converting here...
int argc = (*env)->GetArrayLength(env, args) + 1; // Leading executable
path
char** argv = (char**) calloc(argc, sizeof(char*));
argv[0] = (char*) "wine";
for(int i=1; i<argc; i++) {
jstring js = (jstring)((*env)->GetObjectArrayElement(env, args, i -
1));
const char *pjc = (*env)->GetStringUTFChars(env, js, JNI_FALSE);
argv[i] = (char *) calloc(strlen(pjc) + 1, sizeof(char)); //Extra char
for the terminating NULL
strcpy((char *) argv[i], pjc);
(*env)->ReleaseStringUTFChars(env, js, pjc);
}
return main(argc, argv);
}
```
After this point you will be able to use java code and java Android APIs.
Next step is obtaining Binder connection to your activity. It is not very
straightforward but it is possible. Full code will be pretty much long so I
will simply put links to my project which works on Android 8+.
Pay attention to functions sendBroadcast and createContext (createContext is
used in static block in the end of file).
It requires exposing some private Android APIs, but it is not restricted if you
are using app_process this way.
https://github.com/termux/termux-x11/blob/master/app/src/main/java/com/term…
Make sure you are creating thread with performing `Looper.prepareMainLooper();`
and `Looper.loop()` to make sure Binder background requests will work fine in
static block (to make sure it will work before JVM invokes `main` function,
just for case it is `native`).
Next step will be acquiring Surface from Wine's activity.
Of course you can create AIDL with single function like `Surface getSurface(int
hwnd);` and obtain Surface directly from `alloc_win_data` or simillar function
via JNI.
But in my cases it did not work. I mean sending request from my process to
Activity which should respond with Surface object did not work.
But I succeeded passing Surface by sending requst from Activity to my process
containing Surface in arguments like `void pushSurface(in Surface surface, int
hwnd);`.
Binder request from Activity to your process will work in different thread
asyncronously so `alloc_win_data` should send surface request to activity and
wait for Binder response or timeout.
I hope I explained everything with enough details.
Thank you for your hard work.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47345
Bug ID: 47345
Summary: When clicking on the Drivers tab, winecfg crashes
Product: Wine
Version: 4.10
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: blocker
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: soulsofblack12(a)hotmail.com
Distribution: ---
Created attachment 64676
--> https://bugs.winehq.org/attachment.cgi?id=64676
The error
I am running wine-staging, when i launch winecfg from the console and try to
click on the Drivers tab, winecfg crashes and closes itself.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57122
Bug ID: 57122
Summary: When clicking on the image in the WeChat group chat
and attempting to enlarge it, a program error is
reported
Product: Wine
Version: 9.0-rc5
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: rayklaus(a)163.com
Distribution: ---
Created attachment 77012
--> https://bugs.winehq.org/attachment.cgi?id=77012
file saved according to prompts when the program crashes
linux info:
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
wineinfo:
ii wine 9.0~repack-4build3
all Windows API implementation - standard suite
ii wine32:i386 9.0~repack-4build3
i386 Windows API implementation - 32-bit binary loader
ii wine64 9.0~repack-4build3
amd64 Windows API implementation - 64-bit binary loader
ii winetricks 20240105-2
all simple tool to work around common problems in Wine
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57201
Bug ID: 57201
Summary: EA client cannot launch game after wine 8.17+
Product: Wine
Version: 8.17
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: steampunque8(a)gmail.com
Distribution: ---
Created attachment 77096
--> https://bugs.winehq.org/attachment.cgi?id=77096
last steps of bisect
wine 8.16 was able to launch old origin games with the new EA client. with
wine 8.17 and above, some kind of an arcane error message is given and the
launch fails. I bisected the problem to
917d6afa695ba8d5124a11b02b18c6777cc9e56c, wbemprox: Implement
Win32OperatingSystem.Installdate. The last stages of the bisect are attached.
OS is Slackware 15.0, x86_64, RTX 4070. Windows version is set to 10 in
winecfg.
I don't know if this affects other than old origin games as I only have one
origin game that I ever launch (and that very rarely), PvZ GoTY.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57328
Bug ID: 57328
Summary: little garden spectrometer V0.2.exe crashes when
trying to select the USB camera
Product: Wine
Version: 9.15
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: jonstew1983+wine(a)gmail.com
Distribution: ---
Created attachment 77278
--> https://bugs.winehq.org/attachment.cgi?id=77278
Console output from Wine including crash message
little garden spectrometer V0.2.exe can be downloaded from
https://drive.google.com/drive/folders/1i7VcQxSc1r_lNGZZ3H5pEf1PhfrYwtP5
The hardware is from https://www.aliexpress.us/item/1005007241834839.html but
it also crashes trying to access my laptop USB camera.
Wine was installed with the command `sudo dnf install wine --allowerasing` on
Linux fedora 6.10.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep 30 21:38:25
UTC 2024 x86_64 GNU/Linux
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57151
Bug ID: 57151
Summary: AppDB is incredibly slow
Product: WineHQ Apps Database
Version: unspecified
Hardware: x86-64
OS: Linux
Status: NEW
Keywords: source
Severity: normal
Priority: P2
Component: appdb-unknown
Assignee: wine-bugs(a)winehq.org
Reporter: imwellcushtymelike(a)gmail.com
Distribution: ---
The AppDB seems to be getting slower and slower. Today it's taking up to a
minute just to load a page. Does it need more resources?
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42741
Bug ID: 42741
Summary: StarCraft I: 1.18 PTR fails to initialize
ClientSdk.dll
Product: Wine
Version: 2.4
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: li.davidm96(a)gmail.com
Distribution: ---
Created attachment 57743
--> https://bugs.winehq.org/attachment.cgi?id=57743
stderr output of Wine when running StarCraft.exe
The 1.18 public test release of the upcoming version of StarCraft I does not
launch, as ClientSdk.dll fails to initialize.
Tested with Wine 2.4 (latest from Arch repositories), in a fresh 64-bit
wineprefix. Architecture is AMD64.
The download is here:
https://us.battle.net/forums/en/starcraft/topic/20753915707
sha1sum:
2d6702a425f13659227814fbc903568d63daeb08
/home/lidavidm/Downloads/Starcraft+1.18+PTR+1202.zip
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=56705
Bug ID: 56705
Summary: AppDB tables need indexes
Product: WineHQ Apps Database
Version: unspecified
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: appdb-unknown
Assignee: wine-bugs(a)winehq.org
Reporter: jnewman(a)codeweavers.com
Distribution: ---
Many SQL tables used by the AppDB do not have indexes for fields used in WHERE
queries, and in sorts.
Generating those index now will take hours, and will take the DB offline (which
will affect Bugzilla as well). So this task will need to be scheduled over a
weekend.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52380
Bug ID: 52380
Summary: Logos 9 Bible Software (.NET 4.7 app) menus glitching,
flickering and not showing regression
Product: Wine
Version: 7.0-rc5
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: johnpgoodman(a)gmail.com
Distribution: ---
Created attachment 71593
--> https://bugs.winehq.org/attachment.cgi?id=71593
Video showing menu glitch regression.
Menu Items docs guides tools and layout work on first click and then flash
there after. This is a regression which only appears in 7.0rc5-staging. devel
doesn't have this bug. Please see the video for demonstration.
N.b. this is not the same as bug 51984 which was resolved.
Help is much appreciated! Below is the installation guide.
The app is a bit like kindle in so much as the engine is free but the resources
cost so there is a free download. Unlike kindle it has many advanced research
features and books link together etc. The main app is free but there are paid
features, resources and subscriptions. To use the app you need a free account
https://www.logos.com/product/194909/logos-9-basic. It uses a downloader app
which last I tried doesn't work with wine. The actual msi link is
https://downloads.logoscdn.com/LBS9/Installer/9.6.0.0024/Logos-x64.msi
Manual Install Procedure:
1 Install wine 6 or newer
2 winetricks corefonts
3 winetricks settings fontsmooth=rgb
4 winetricks dotnet48
5 winetricks settings renderer=gdi (you might need to set the reg key
manually)
6 Install the Logos.msi download but don't run it.
7 wine64 reg add "HKCU\\Software\\Wine\\AppDefaults\\LogosIndexer.exe" /v
Version /t REG_SZ /d vista /f
8 Run Logos and sign in with your free account.
There is a script which downloads a preconfigured wine bottle and sets it all
up in $USER/Logos_BibleP directory which you can then easily remove etc.
https://github.com/ferion11/LogosLinuxInstaller/releases Choose fast install
without wine AppImage.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=51092
Bug ID: 51092
Summary: reMarkable desktop app - Software Updater indefinetly
runs
Product: Wine
Version: 5.0.5
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: trivial
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: graeme.wiebe(a)gmail.com
Distribution: ---
Quite simple: the software updater runs indefinitely, which can be easily
solved by closing the popup.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.