"Unhandled exception" error after compile from source

Questions about Wine on macOS.
Locked
v1nsai
Level 1
Level 1
Posts: 8
Joined: Sun Jun 21, 2009 12:12 am

"Unhandled exception" error after compile from source

Post by v1nsai »

I'm trying to patch my wine binary to play Tera, and after many unsuccessful patches I have realized that even when compiling the vanilla wine source straight from git without patching that I still get the same error, so something is wrong with how I'm compiling wine I suppose.

First I configure with

Code: Select all

./configure --verbose --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib
make
then make. When trying to run literally anything I get the same error

Code: Select all

err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6283e
There are a few others that I get also, such as when running the Tera launcher

Code: Select all

v1Mac-Pro:wine-git v1nsai$ ./wine /Users/v1nsai/.wine/drive_c/Program\ Files/TERA/TERA-Launcher.exe 
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6283e
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6283e
Or even just winecfg

Code: Select all

v1Mac-Pro:wine-git v1nsai$ ./wine winecfg
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc6283e
err:module:attach_process_dlls "shlwapi.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005
Can anyone offer some advice on what might be going wrong? I can't even get winetricks or winecfg to run I'm unsure of what to do now, any help would be appreciated.
Eunoian
Level 1
Level 1
Posts: 6
Joined: Sat Mar 30, 2013 3:13 pm

Re: "Unhandled exception" error after compile from source

Post by Eunoian »

I believe your initial error code has to do with mislabelled, missing or damaged files.

So, in my inexperienced opinion, I would uninstall and reinstall wine and winetricks to the latest stable releases. However, hopefully someone else comments before you're forced to try this.

I am not experienced with Git at all, so I must ask... how did you compile wine?
v1nsai
Level 1
Level 1
Posts: 8
Joined: Sun Jun 21, 2009 12:12 am

Re: "Unhandled exception" error after compile from source

Post by v1nsai »

I've re-downloaded the source through git several times and used a few different ./configure commands, but here's how I'm doing it from start to finish. These commands just download the source and compile it, I'm not making any modifications to it and still getting the same errors as I do with the patches I need to put in.

Code: Select all

v1Mac-Pro:~ v1nsai$ git clone git://source.winehq.org/git/wine.git ~/Downloads/wine-git-new
v1Mac-Pro:~ v1nsai$ cp -r ~/Downloads/wine-git-new ~/Downloads/wine-git
v1Mac-Pro:~ v1nsai$ cd ~/Downloads/wine-git
v1Mac-Pro:wine-git v1nsai$ ./configure --verbose --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib
v1Mac-Pro:wine-git v1nsai$ make
v1Mac-Pro:wine-git v1nsai$ ./wine ~/Downloads/wine-git/programs/winecfg
After running the last command, the following errors come up:

Code: Select all

err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc628de
wine: Invalid handle.
Segmentation fault: 11
When running ./configure, I do get some warnings that certain things won't work because libraries are missing, but they don't seem to be related to core functions. Here's the list of warnings ./configure gives me:

Code: Select all

configure: libsane 32-bit development files not found, scanners won't be supported.
configure: libv4l 32-bit development files not found.
configure: libgphoto2 32-bit development files not found, digital cameras won't be supported.
configure: liblcms 32-bit development files not found, Color Management won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 32-bit development files not found, ISDN won't be supported.
configure: libgsm 32-bit development files not found, gsm 06.10 codec won't be supported.
configure: libtiff 32-bit development files not found, TIFF won't be supported.

configure: WARNING: libjpeg 32-bit development files not found, JPEG won't be supported.

configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.

configure: Finished.  Do 'make' to compile Wine.
Locked