Can't run ANY program in Wine :-(

Questions about Wine on Linux
mrhappy
Level 2
Level 2
Posts: 15
Joined: Mon Nov 21, 2016 5:01 pm

Re: Can't run ANY program in Wine :-(

Post by mrhappy »

I installed them all

Code: Select all

james@James ~/Downloads/freetype/i386 $ sudo dpkg -i freetype2-demos_2.6.1-0.1ubuntu2_i386.deb && sudo dpkg -i libfreetype6_2.6.1-0.1ubuntu2_i386.deb && sudo dpkg -i libfreetype6-dbgsym_2.6.1-0.1ubuntu2_i386.ddeb && sudo dpkg -i libfreetype6-dev_2.6.1-0.1ubuntu2_i386.deb && sudo dpkg -i libfreetype6-udeb_2.6.1-0.1ubuntu2_i386.udeb && sudo dpkg -i libfreetype6-udeb-dbgsym_2.6.1-0.1ubuntu2_amd64.ddeb && sudo dpkg -i libfreetype6-udeb-dbgsym_2.6.1-0.1ubuntu2_i386.ddeb
(Reading database ... 361439 files and directories currently installed.)
Preparing to unpack freetype2-demos_2.6.1-0.1ubuntu2_i386.deb ...
Unpacking freetype2-demos:i386 (2.6.1-0.1ubuntu2) over (2.6.1-0.1ubuntu2) ...
Setting up freetype2-demos:i386 (2.6.1-0.1ubuntu2) ...
(Reading database ... 361439 files and directories currently installed.)
Preparing to unpack libfreetype6_2.6.1-0.1ubuntu2_i386.deb ...
Unpacking libfreetype6:i386 (2.6.1-0.1ubuntu2) over (2.6.1-0.1ubuntu2) ...
Setting up libfreetype6:i386 (2.6.1-0.1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu4) ...
(Reading database ... 361439 files and directories currently installed.)
Preparing to unpack libfreetype6-dbgsym_2.6.1-0.1ubuntu2_i386.ddeb ...
Unpacking libfreetype6-dbgsym:i386 (2.6.1-0.1ubuntu2) over (2.6.1-0.1ubuntu2) ...
Setting up libfreetype6-dbgsym:i386 (2.6.1-0.1ubuntu2) ...
(Reading database ... 361439 files and directories currently installed.)
Preparing to unpack libfreetype6-dev_2.6.1-0.1ubuntu2_i386.deb ...
Unpacking libfreetype6-dev:i386 (2.6.1-0.1ubuntu2) over (2.6.1-0.1ubuntu2) ...
Setting up libfreetype6-dev:i386 (2.6.1-0.1ubuntu2) ...
Processing triggers for doc-base (0.10.7) ...
Processing triggers for man-db (2.7.5-1) ...
Selecting previously unselected package libfreetype6-udeb:i386.
(Reading database ... 361439 files and directories currently installed.)
Preparing to unpack libfreetype6-udeb_2.6.1-0.1ubuntu2_i386.udeb ...
Unpacking libfreetype6-udeb:i386 (2.6.1-0.1ubuntu2) ...
dpkg: dependency problems prevent configuration of libfreetype6-udeb:i386:
 libfreetype6-udeb:i386 depends on libc6-udeb (>= 2.23).
 libfreetype6-udeb:i386 depends on libpng12-0-udeb (>= 1.2.13-4).
 libfreetype6-udeb:i386 depends on zlib1g-udeb (>= 1:1.2.3.3.dfsg-1).

dpkg: error processing package libfreetype6-udeb:i386 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libfreetype6-udeb:i386
The above dependencies are installed, except udeb versions. The system reported libfreetype6-udeb:i386 was broken and removed it.

Alas, Wine is still not working:

Code: Select all

Exec string:
/usr/bin/env  WINEPREFIX='/home/james/.wine'  WINESERVER='/usr/bin/wineserver'  WINELOADER='/usr/bin/wine'  WINEDLLPATH='/usr/lib/x86_64-linux-gnu/wine/'  WINEDEBUG='-all'  /bin/sh -c "cd '/home/james' &&   '/usr/bin/wine'   'notepad.exe'  2>&1 "
Exit code:
1280
App STDOUT and STDERR output:
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
wine: Unhandled page fault on read access to 0x0000005c at address 0x7d989bda (thread 0009), starting debugger...
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
err:syslink:SYSLINK_SetFont Failed to create link font!
Unhandled exception: page fault on read access to 0x0000005c in 32-bit code (0x7d989bda).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7d989bda ESP:0033f260 EBP:0033f288 EFLAGS:00210206(  R- --  I   - -P- )
 EAX:00125828 EBX:00120a58 ECX:0033f250 EDX:00000000
 ESI:001257f0 EDI:00120f10
Stack dump:
0x0033f260:  00000000 7e8b7e06 0033f290 7e8f2000
0x0033f270:  00120a58 7d989b46 0033f2a0 7e8f2000
0x0033f280:  00120a58 00120f10 0033f308 7e84f75c
0x0033f290:  00010007 d951f000 00120a58 7e84f75c
0x0033f2a0:  001257f0 00120f10 0033f308 7e84f748
0x0033f2b0:  0012004e 00000001 00000000 00000001
Backtrace:
=>0 0x7d989bda ScriptString_pSize+0xaa() in usp10 (0x0033f288)
  1 0x7e84f75c in user32 (+0x2f75b) (0x0033f308)
  2 0x7e85365f in user32 (+0x3365e) (0x0033f368)
  3 0x7e854692 in user32 (+0x34691) (0x0033f3a8)
  4 0x7e85613b in user32 (+0x3613a) (0x0033f418)
  5 0x7e8b204e in user32 (+0x9204d) (0x0033f448)
  6 0x7e8b1eca WINPROC_wrapper+0x19() in user32 (0x0033f488)
  7 0x7e8b24fa in user32 (+0x924f9) (0x0033f4d8)
  8 0x7e8b4995 in user32 (+0x94994) (0x0033f528)
  9 0x7e8791cc DispatchMessageW+0x9b() in user32 (0x0033f638)
  10 0x7ed12cc6 WinMain+0xe75() in notepad (0x0033fd58)
  11 0x7ed0db0f main+0xce() in notepad (0x0033fdf8)
  12 0x7ed1318b in notepad (+0x1318a) (0x0033fe38)
  13 0x7b4604dc call_process_entry+0xb() in kernel32 (0x0033fe58)
  14 0x7b46150a in kernel32 (+0x51509) (0x0033fe88)
  15 0x7bc8053c call_thread_func_wrapper+0xb() in ntdll (0x0033fea8)
  16 0x7bc8350d call_thread_func+0xfc() in ntdll (0x0033ffa8)
  17 0x7bc8051a RtlRaiseException+0x21() in ntdll (0x0033ffc8)
  18 0x7bc52887 call_dll_entry_point+0x3d6() in ntdll (0x0033ffe8)
  19 0xf759cb7d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  20 0xf759cce0 wine_switch_to_stack+0x1f() in libwine.so.1 (0xffb53068)
  21 0x7bc58869 LdrInitializeThunk+0x228() in ntdll (0xffb530a8)
  22 0x7b46762a __wine_kernel_init+0xa69() in kernel32 (0xffb54218)
  23 0x7bc59743 __wine_process_init+0x152() in ntdll (0xffb54288)
  24 0xf759ad37 wine_init+0x2c6() in libwine.so.1 (0xffb542e8)
  25 0x7c000ac2 main+0x81() in <wine-loader> (0xffb54738)
  26 0xf73ad637 __libc_start_main+0xf6() in libc.so.6 (0x00000000)
0x7d989bda ScriptString_pSize+0xaa in usp10: movl	0x5c(%edx),%edx
Modules:
Module	Address			Debug info	Name (87 modules)
ELF	7b400000-7b7e1000	Dwarf           kernel32<elf>
  \-PE	7b410000-7b7e1000	\               kernel32
ELF	7bc00000-7bcf6000	Dwarf           ntdll<elf>
  \-PE	7bc10000-7bcf6000	\               ntdll
ELF	7c000000-7c004000	Dwarf           <wine-loader>
ELF	7d95b000-7d9a0000	Dwarf           usp10<elf>
  \-PE	7d960000-7d9a0000	\               usp10
ELF	7d9a0000-7d9b6000	Deferred        libgpg-error.so.0
ELF	7d9b6000-7da2b000	Deferred        libpcre.so.3
ELF	7da2b000-7da48000	Deferred        libgcc_s.so.1
ELF	7da48000-7daf7000	Deferred        libgcrypt.so.20
ELF	7daf7000-7db1d000	Deferred        liblzma.so.5
ELF	7db1d000-7db26000	Deferred        librt.so.1
ELF	7db26000-7db4c000	Deferred        libselinux.so.1
ELF	7db4c000-7dbda000	Deferred        libsystemd.so.0
ELF	7dbda000-7dbe3000	Deferred        libffi.so.6
ELF	7dbe3000-7dbfc000	Deferred        libresolv.so.2
ELF	7dbfc000-7dc01000	Deferred        libkeyutils.so.1
ELF	7dc01000-7dc5b000	Deferred        libdbus-1.so.3
ELF	7dc5b000-7dce7000	Deferred        libgmp.so.10
ELF	7dce7000-7dd1c000	Deferred        libhogweed.so.4
ELF	7dd1c000-7dd58000	Deferred        libnettle.so.6
ELF	7dd58000-7dd6d000	Deferred        libtasn1.so.6
ELF	7dd6d000-7dda1000	Deferred        libidn.so.11
ELF	7dda1000-7de02000	Deferred        libp11-kit.so.0
ELF	7de02000-7de0f000	Deferred        libkrb5support.so.0
ELF	7de0f000-7de14000	Deferred        libcom_err.so.2
ELF	7de14000-7de45000	Deferred        libk5crypto.so.3
ELF	7de45000-7df1c000	Deferred        libkrb5.so.3
ELF	7df1c000-7df37000	Deferred        libz.so.1
ELF	7df37000-7df4b000	Deferred        libavahi-client.so.3
ELF	7df4b000-7df59000	Deferred        libavahi-common.so.3
ELF	7df59000-7e0b1000	Deferred        libgnutls.so.30
ELF	7e0b1000-7e103000	Deferred        libgssapi_krb5.so.2
ELF	7e103000-7e18a000	Deferred        libcups.so.2
ELF	7e18a000-7e1c1000	Deferred        uxtheme<elf>
  \-PE	7e190000-7e1c1000	\               uxtheme
ELF	7e1c1000-7e1c8000	Deferred        libxfixes.so.3
ELF	7e1c8000-7e1d3000	Deferred        libxcursor.so.1
ELF	7e1d3000-7e1e6000	Deferred        libxi.so.6
ELF	7e1e6000-7e1ea000	Deferred        libxcomposite.so.1
ELF	7e1ea000-7e1f7000	Deferred        libxrandr.so.2
ELF	7e1f7000-7e203000	Deferred        libxrender.so.1
ELF	7e203000-7e229000	Deferred        libxcb.so.1
ELF	7e229000-7e374000	Deferred        libx11.so.6
ELF	7e374000-7e389000	Deferred        libxext.so.6
ELF	7e3b4000-7e441000	Deferred        winex11<elf>
  \-PE	7e3c0000-7e441000	\               winex11
ELF	7e441000-7e465000	Deferred        imm32<elf>
  \-PE	7e450000-7e465000	\               imm32
ELF	7e465000-7e526000	Deferred        msvcrt<elf>
  \-PE	7e480000-7e526000	\               msvcrt
ELF	7e526000-7e565000	Deferred        winspool<elf>
  \-PE	7e530000-7e565000	\               winspool
ELF	7e565000-7e660000	Deferred        comctl32<elf>
  \-PE	7e570000-7e660000	\               comctl32
ELF	7e660000-7e6d7000	Deferred        advapi32<elf>
  \-PE	7e670000-7e6d7000	\               advapi32
ELF	7e6d7000-7e807000	Deferred        gdi32<elf>
  \-PE	7e6e0000-7e807000	\               gdi32
ELF	7e807000-7e95b000	Dwarf           user32<elf>
  \-PE	7e820000-7e95b000	\               user32
ELF	7e95b000-7e9d2000	Deferred        shlwapi<elf>
  \-PE	7e970000-7e9d2000	\               shlwapi
ELF	7e9d2000-7ec12000	Deferred        shell32<elf>
  \-PE	7e9e0000-7ec12000	\               shell32
ELF	7ec12000-7ecfc000	Deferred        comdlg32<elf>
  \-PE	7ec20000-7ecfc000	\               comdlg32
ELF	7ecfc000-7ed45000	Dwarf           notepad<elf>
  \-PE	7ed00000-7ed45000	\               notepad
ELF	7ef45000-7ef58000	Deferred        libnss_files.so.2
ELF	7ef58000-7ef65000	Deferred        libnss_nis.so.2
ELF	7ef65000-7ef80000	Deferred        libnsl.so.1
ELF	7ef80000-7efd5000	Deferred        libm.so.6
ELF	7efd8000-7efdf000	Deferred        libxxf86vm.so.1
ELF	7efdf000-7efe6000	Deferred        libxdmcp.so.6
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f7381000-f7385000	Deferred        libxinerama.so.1
ELF	f7385000-f738f000	Deferred        libnss_compat.so.2
ELF	f7390000-f7395000	Deferred        libdl.so.2
ELF	f7395000-f754b000	Dwarf           libc.so.6
ELF	f754c000-f7569000	Deferred        libpthread.so.0
ELF	f756c000-f7570000	Deferred        libxau.so.6
ELF	f7594000-f774b000	Dwarf           libwine.so.1
ELF	f774d000-f7772000	Deferred        ld-linux.so.2
ELF	f7774000-f7775000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\windows\system32\notepad.exe
	00000009    0 <==
0000000e services.exe
	00000020    0
	0000001f    0
	00000017    0
	00000016    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001e    0
	0000001b    0
	0000001a    0
	00000019    0
	00000018    0
	00000013    0
0000001c plugplay.exe
	00000022    0
	00000021    0
	0000001d    0
00000023 explorer.exe
	0000002a    0
	00000029    0
	00000028    0
	00000027    0
	00000024    0
System information:
    Wine build: wine-1.9.23
    Platform: i386 (WOW64)
    Version: Windows XP
    Host system: Linux
    Host version: 4.4.0-47-generic
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Can't run ANY program in Wine :-(

Post by Bob Wya »

I'm going to ask you what packages to install... Then I'll pop off to break my system before you can respond...
:roll:

What packages do you need? dpkg to the rescue!!

Code: Select all

dpkg -S /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6
libfreetype6:i386: /usr/lib/i386-linux-gnu/libfreetype.so.6
libfreetype6:amd64: /usr/lib/x86_64-linux-gnu/libfreetype.so.6
So you'd want to go to Ubuntu / Packages / Xenial / Package: libfreetype6 (2.6.1-0.1ubuntu2)
Download the deb packages for: Install these deb packages:

Code: Select all

sudo dkpg -i libfreetype6_2.6.1-0.1ubuntu2_i386.deb libfreetype6_2.6.1-0.1ubuntu2_amd64.deb
You shouldn't need the -dev (development/source packages) or -dbg (debug symbol packages) for everyday usage!

Bob
mrhappy
Level 2
Level 2
Posts: 15
Joined: Mon Nov 21, 2016 5:01 pm

Re: Can't run ANY program in Wine :-(

Post by mrhappy »

I'm going to ask you what packages to install... Then I'll pop off to break my system before you can respond...
:roll:
Ha ha! You just weren't quick enough Bob! :wink: I guessed it was unlikely to do any real harm.

The standard Mint packages are the same version as the Ubuntu Xenial ones (2.6.1-0.1ubuntu2) and installing them sadly hasn't fixed the problem. Suppose I will have to wait for the bug in Mint to be addressed
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Can't run ANY program in Wine :-(

Post by Bob Wya »

mrhappy wrote: Ha ha! You just weren't quick enough Bob! :wink: I guessed it was unlikely to do any real harm.

The standard Mint packages are the same version as the Ubuntu Xenial ones (2.6.1-0.1ubuntu2) and installing them sadly hasn't fixed the problem. Suppose I will have to wait for the bug in Mint to be addressed
I'll have to work on my touch-tyipng spwwd... 8)

Just out of interest are the linked libraries fixed for freetype (no reference to harfbuzz)??

Check with:

Code: Select all

ldd /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6
I would have thought that little hack would work. :cry:

Also don't forget a reboot will be necessary after installing the Upstream Ubuntu packages (since a lot of other system packages will keep the Mint version of freetype resident in RAM).

How disappointing...
Bob
mrhappy
Level 2
Level 2
Posts: 15
Joined: Mon Nov 21, 2016 5:01 pm

Re: Can't run ANY program in Wine :-(

Post by mrhappy »

Just out of interest are the linked libraries fixed for freetype (no reference to harfbuzz)??

Code: Select all

james@James ~ $ ldd /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6
/usr/lib/i386-linux-gnu/libfreetype.so.6:
	linux-gate.so.1 =>  (0xf7722000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7628000)
	libpng12.so.0 => /opt/lightscribeApplications/common/Qt/libpng12.so.0 (0xf7603000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf744c000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf73f7000)
	/lib/ld-linux.so.2 (0x5659d000)
/usr/lib/x86_64-linux-gnu/libfreetype.so.6:
	linux-vdso.so.1 =>  (0x00007ffcc61da000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fba5c55b000)
	libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fba5c336000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fba5bf6c000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fba5bc63000)
	/lib64/ld-linux-x86-64.so.2 (0x000055c433347000)
I've rebooted a few times now and I keep trying in case some magic has occurred... sorry :(
Locked