PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Questions about Wine on Linux
Locked
User avatar
juozas
Level 1
Level 1
Posts: 5
Joined: Sun Dec 06, 2020 3:51 pm

PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by juozas »

When trying to run PSPad editor (latest stable/dev version) wine crash with virtual_setup_exception error while splash screen is shown or while checking for updates. The editor hangs with busy cursor and an exception is shown in the terminal. The only solution is to kill the affected application as it does not return from hang. Running from command line results with output as shown below:

Code: Select all

$ wine PSPad.exe 
0034:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
005c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0064:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
006c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 29 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f4:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0024:fixme:thread:GetThreadUILanguage : stub, returning default language.
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 010ED998, 00000000 010ED9C0
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 010ED998 00000000 010ED9C0) returning a dummy value (current locale)
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 010ED998, 01FAA680 010ED9C0
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 010ED998 01FAA680 010ED9C0) returning a dummy value (current locale)
0024:fixme:wtsapi:WTSRegisterSessionNotification Stub 0001007E 0x00000000
0024:fixme:uxtheme:BufferedPaintInit Stub ()
0024:fixme:win:DisableProcessWindowsGhosting : stub
0024:fixme:font:freetype_set_outline_text_metrics failed to read full_nameW for font L"Ani"!
0024:fixme:win:LockWindowUpdate (0001008A), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d wp=00000000 lp=00000000
0024:err:listview:LISTVIEW_WindowProc unknown msg 109d wp=00000000 lp=00000000
0024:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
0024:fixme:toolhelp:Heap32ListFirst : stub
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:err:virtual:virtual_setup_exception nested exception on signal stack in thread 0024 addr 0xf7ce71f4 stack 0x7ffcf870 (0xdf0000-0xdf2000-0x10f0000)
Nutraukta (killed)
To reproduce
  1. (optionally) create a new user
  2. (optionally) assign admin privileges such as sudo to it
  3. (optionally, if wine prefix does not exist) run wine wineboot
  4. Download pspad zip archive from official site, unzip to some location or use installer (not tested)
  5. cd to pspad dir, run "wine PSPad.exe"
  6. Watch the editor hanging on splash screen, or try to check for updates (from menu) if it does not hang, watch editor hang during check
Environment
Ubuntu 20.04 LTS with proposed repository enabled, Xfce 4.14
Wine 6.0-rc1 (from official winehq repository for ubuntu)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by jkfloris »

I can't reproduce your issue.
Make sure you have installed the necessary fonts

Code: Select all

# System-wide
sudo apt install ttf-mscorefonts-installer
# Or just for the prefix
winetricks -q corefonts
Run the program with the C locale

Code: Select all

LANG=C wine PSPad.exe
(optionally) assign admin privileges such as sudo to it
Why does the user need admin privileges?
User avatar
juozas
Level 1
Level 1
Posts: 5
Joined: Sun Dec 06, 2020 3:51 pm

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by juozas »

I can't reproduce your issue.
It hangs during splash screen on first run for me. Not sure what packages and/or configurations causes it, it also happens on newly created accounts with default Xfce configuration, system running legacy nvidia (340x) driver, running wine 6.0-rc1, also PSPad was installed manually by unpacking zip archive to new directory, no installer was used.
Make sure you have installed the necessary fonts

Code: Select all

# System-wide
sudo apt install ttf-mscorefonts-installer
# Or just for the prefix
winetricks -q corefonts
ttf-mscorefonts-installer already installed, no fonts should be missing.

Code: Select all

$ dpkg -l ttf-mscorefonts-installer
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Vardas                    Versija      Architecture Aprašymas
+++-=========================-============-============-===========================================
ii  ttf-mscorefonts-installer 3.7ubuntu6   all          Installer for Microsoft TrueType core fonts
Run the program with the C locale
Changing locale to C does not solve it, wine still crash.
Why does the user need admin privileges?
It does not, the bug happens for both unprivileged and privileged users, so it's optional, I was using account with admin privileges when that happened.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by jkfloris »

Strange. The only difference is that you are using an older version of the Nvdia driver, but I don't really expect that to make much difference for this program.
Did you install all recommend 32bit Wine dependencies?

Code: Select all

apt-cache depends wine-devel-i386
User avatar
juozas
Level 1
Level 1
Posts: 5
Joined: Sun Dec 06, 2020 3:51 pm

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by juozas »

I tried wine stable, it works. The problem must be in devel version. After reinstalling I made sure all recommended packages were installed, not sure if deps of some already installed had recommends installed, though. Output of apt-cache depends is below.

Code: Select all

$ LC_ALL=C apt-cache depends wine-devel-i386
wine-devel-i386:i386
  PreDepends: dpkg:i386
    dpkg
  Depends: libasound2:i386
  Depends: libc6:i386
  Depends: libfaudio0:i386
  Depends: libglib2.0-0:i386
  Depends: libgphoto2-6:i386
  Depends: libgphoto2-port12:i386
  Depends: libgstreamer-plugins-base1.0-0:i386
  Depends: libgstreamer1.0-0:i386
  Depends: liblcms2-2:i386
  Depends: libldap-2.4-2:i386
  Depends: libmpg123-0:i386
  Depends: libopenal1:i386
  Depends: libpcap0.8:i386
  Depends: libpulse0:i386
  Depends: libudev1:i386
  Depends: libusb-1.0-0:i386
  Depends: libvkd3d1:i386
  Depends: libx11-6:i386
  Depends: libxext6:i386
  Depends: libxml2:i386
 |Depends: ocl-icd-libopencl1:i386
  Depends: <libopencl1:i386>
    ocl-icd-libopencl1:i386
 |Depends: ocl-icd-libopencl1:i386
  Depends: <libopencl-1.1-1:i386>
    ocl-icd-libopencl1:i386
  Depends: libasound2-plugins:i386
 |Depends: libncurses6:i386
 |Depends: libncurses5:i386
  Depends: <libncurses:i386>
  Recommends: libcap2-bin:i386
    libcap2-bin
  Recommends: libcapi20-3:i386
  Recommends: libcups2:i386
  Recommends: libdbus-1-3:i386
  Recommends: libfontconfig1:i386
  Recommends: libfreetype6:i386
 |Recommends: libglu1-mesa:i386
  Recommends: <libglu1:i386>
    libglu1-mesa:i386
 |Recommends: libgnutls30:i386
 |Recommends: <libgnutls28:i386>
  Recommends: <libgnutls26:i386>
  Recommends: libgsm1:i386
  Recommends: libgssapi-krb5-2:i386
 |Recommends: <libjpeg62-turbo:i386>
  Recommends: libjpeg8:i386
  Recommends: libkrb5-3:i386
  Recommends: libodbc1:i386
  Recommends: libosmesa6:i386
 |Recommends: libpng16-16:i386
  Recommends: <libpng12-0:i386>
 |Recommends: libsane:i386
  Recommends: libsane1:i386
    libsane:i386
  Recommends: libsdl2-2.0-0:i386
  Recommends: libtiff5:i386
  Recommends: libv4l-0:i386
  Recommends: libxcomposite1:i386
  Recommends: libxcursor1:i386
  Recommends: libxfixes3:i386
  Recommends: libxi6:i386
  Recommends: libxinerama1:i386
  Recommends: libxrandr2:i386
  Recommends: libxrender1:i386
  Recommends: libxslt1.1:i386
  Recommends: libxxf86vm1:i386
I also created a bug in bugzilla about same problem, built wine according to instructions of Regression Testing wiki page with all available build deps installed, will try to find which commit causes the problem.
User avatar
juozas
Level 1
Level 1
Posts: 5
Joined: Sun Dec 06, 2020 3:51 pm

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by juozas »

Just finished doing regression testing like described in the wiki. As my bug (on bugzilla) is marked as regression I was advised to do this.

Anyway, I found the commit that caused the crash, titled "ntdll: Support AVX registers for other thread in Nt{Get|Set}ContextThread()." with commit hash 419abd49a1f816e5a869dbf4cc81114cd516138b, committed on Fri Oct 9 16:03:54 2020 +0300

All versions prior the commit works fine, and I'm running on Intel Pentium Dual-Core E6300 @ 2.80GHz
User avatar
juozas
Level 1
Level 1
Posts: 5
Joined: Sun Dec 06, 2020 3:51 pm

Re: PSPad editor hangs on startup or while checking for updates (Wine crash with virtual_setup_exception error)

Post by juozas »

The problem is now solved. Fixed in 0fde203cac0ada6439f180ac9c0456f2e85bb786. Apparently some CPU's such as mine does not have the XSAVE feature so this avoids crash when such a feature is not available.
Locked