You are not logged in.

#1 2016-11-17 11:23:01

HisDudeness
Member
From: Melzo, Milan (Italy)
Registered: 2014-09-29
Posts: 107

Witcher 2: failed to initialise libICU, error 4

I've bought the DRM-free version of The Witcher 2: Assassins of Kings - Enhanced Edition on GOG.com. I'm not able to make it start.

The terminal output is

ERROR - eON failed to initialise!

and, if I look at the eON log file, I read:

more ~/.local/share/cdprojektred/witcher2/eon.txt
[thread ffffffff][I][25]: Log system initialised
[thread ffffffff][E][46]: eON_Core::init() - failed to initialise libICU at path
 '/media/Storage/Games/CD Project RED/The Witcher 2: Assassins of Kings - Enhanced Edition/game/', error 4

This happens both using the launcher and directly running the game's binary correctly setting library path. All dependencies are satisfied and my system is up to date. I have nVidia Optimus laptop, and I'm launching the game with primus. The result does not change using optirun or nothing at all. I say this because officially only nVidia cards are supported by the game, and errors like this were linked to Intel cards.

Reading from here, it could depend on icu being compiled without -D_FILE_OFFSET_BITS=64 but, if I didn't get it wrong, the game ships with their version of the library statically linked. Anyway, I tried compiling lib32-icu on my own to add the flag and leave no stone unturned, even if I'm really gasping at straws. I've downloaded the PKGBUILD and the patch, but got this problem initially:

$ makepkg -s
==> Making package: lib32-icu 57.1-1 (Thu Nov 17 12:05:27 CET 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading icu4c-57_1-src.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.3M  100 21.3M    0     0  1338k      0  0:00:16  0:00:16 --:--:-- 1532k
  -> Found icu.8198.revert.icu5431.patch
==> Validating source files with md5sums...
    icu4c-57_1-src.tgz ... Passed
    icu.8198.revert.icu5431.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!

Read here it depended on the md5 being outdated, and I updated it with updpkgsums. I now get this other error anyway

==> Starting build()...
patch: **** Only garbage was found in the patch input.
==> ERROR: A failure occurred in build().

Which I could not get a grasp about. Any help?


The Dude minds.

Offline

#2 2016-11-17 15:32:47

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: Witcher 2: failed to initialise libICU, error 4

You might have to locally sign your .patch file and try again. I've never had to do this, so I cant help much there sad

It does seem from the bug report linked, that compiling the regular libicu and NOT the lib32 version is the way to go. You may as well try both.


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#3 2016-11-18 08:37:03

HisDudeness
Member
From: Melzo, Milan (Italy)
Registered: 2014-09-29
Posts: 107

Re: Witcher 2: failed to initialise libICU, error 4

I couldn't really understand how to do that, nor could I find anything about locally signing a patch. The regular icu gives the same problem too.


The Dude minds.

Offline

#4 2016-11-18 16:54:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: Witcher 2: failed to initialise libICU, error 4

I downloaded [extra]/icu through ABS, then had makepkg verify the sources.
The checksum in the PKGBUILD is correct, somehow HisDudeness must have downloaded a corrupted version.

$ makepkg --verifysource
==> Making package: icu 57.1-1 (vr 18 nov 2016 17:51:36 CET)
==> Retrieving sources...
  -> Downloading icu4c-57_1-src.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.3M  100 21.3M    0     0  1836k      0  0:00:11  0:00:11 --:--:-- 1617k
  -> Found icu.8198.revert.icu5431.patch
==> Validating source files with md5sums...
    icu4c-57_1-src.tgz ... Passed
    icu.8198.revert.icu5431.patch ... Passed
$ 

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-11-19 09:38:41

HisDudeness
Member
From: Melzo, Milan (Italy)
Registered: 2014-09-29
Posts: 107

Re: Witcher 2: failed to initialise libICU, error 4

Thanks! Downloaded it again and it worked. However, it looks like -D_FILE_OFFSET_BITS=64 it's not a recognized compile option (I've added it in the PKGBUILD under the build() section, have I chosen the wrong place?)

Edit: sorry, that was banally because it has no sense in the x86_64 version of icu. Using multilib/lib32-icu, however, the option is already there by default in the PKGBUILD. Is there anyone who can help me with that error 4? What could it depend on?

Last edited by HisDudeness (2016-11-19 09:41:16)


The Dude minds.

Offline

Board footer

Powered by FluxBB