Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded can't load ib_util.dll [CORE2711] #3108

Closed
firebird-automations opened this issue Oct 27, 2009 · 25 comments
Closed

Embedded can't load ib_util.dll [CORE2711] #3108

firebird-automations opened this issue Oct 27, 2009 · 25 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Vitali Borushko (flakekun)

While starting application that using FB 2.5 (or 3.0) embedded, runtime error occurs:

R6034 An application has made attempt to load the C runtime library incorrectly...

firebird.log contains:

FLAKE-GS Wed Oct 28 15:40:22 2009
ib_util init failed, UDFs can't be used - looks like firebird misconfigured

D:\\app\\fb25\_bad\\bin/ib\_util\.dll library has not been found
D:\\app\\fb25\_bad\\ib\_util\.dll library has not been found
ib\_util\.dll library has not been found

FLAKE-GS Wed Oct 28 15:40:23 2009
Can't load INTL module 'D:\app\fb25_bad\intl\fbintl.dll'

FLAKE-GS Wed Oct 28 15:40:24 2009
Can't load INTL module 'D:\app\fb25_bad\intl\fbintl.dll'

Commits: d37555e 40e0114

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Do you have VC8 CRT installed ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

Yes. MS VC++ 8.0.56336 Redistributable is installed.

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

I don't know what is it.

How it is installed ?
What is layout of your applicaiton folder ?
Do you have errors in Windows Event log ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

It was installed with vcredist_x86.exe.

app/
fb25/
intl/
fbintl.dll
fbintl.conf
udf/
fbudf.dll
ib_udf.dll
fbembed.dll
fbrmclib.dll
firebird.conf
firebird.log
firebird.msg
ib_util.dll
icudt30.dll
icuin30.dll
icuuc30.dll
Microsoft.VC80.CRT.manifest
msvcp80.dll
msvcr80.dll
application.exe

No errors in Windows Event Log.

I tried to run application on machine without VC8 CRT and had received the same problem

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Do you use the official Beta 2 build (#⁠24643) or a snapshot one?

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

How is fbembed.dll loaded?

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Do you have any of Firebird dll's in system32 ?
Same about CRT dll's
Are your applicaiton have manifest embedded and, if yes, does is have dependency on Microsoft.VC80.CRT assembly ?

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Also, do you have any other ib_util.dll in the PATH?

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

Sorry for not mentioned that before.
I'm using FB 2.5.2.5.0.25731. That problem exists on 2.5.0.25702 and 3.0.0.25871, but on 2.5.0.23650 and 2.5.0.24643 all works fine.

fbembed.dll loaded by WinAPI call LoadLibrary()

I haven't any Firebird dll in system32.
System32/
msvcp50.dll 5.00.7051
msvcp60.dll 6.02.3104.0
msvcp70.dll (+msvcp70d.dll) 7.00.9466.0
msvcp71.dll (+msvcp71.dll) 7.10.3077.0
msvcp80.dll 8.00.50727.762 (same as in fb 2.5 snapshot)
msvcr70.dll 7.00.9466.0
msvcr71.dll (+msvcp71.dll) 7.10.3077.0
msvcr80.dll 8.00.50727.762 (same as in fb 2.5 snapshot)

My app haven't embedde manifest, and it haben't any dependencies on Microsoft.VC80.CRT.

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

No, there is no ib_util.dll in PATH variable.

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

I haven't any Firebird dll in system32.
System32/
msvcp80.dll 8.00.50727.762 (same as in fb 2.5 snapshot)
msvcr80.dll 8.00.50727.762 (same as in fb 2.5 snapshot)

remove them ASAP !

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

Did remove libraries, but problem still exists.

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Is Microsoft.VC80.CRT.manifest left in system32 ?

Ensure you have CRT files (Microsoft.VC80.CRT.manifest, msvcX80.dll) in WinSxS folder only

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

There is no Microsoft.VC80.CRT.manifest in system32 (is wasn't there from the beginning)

I have CRT files in installations of FB2.1 and FB2.5 in Program Files, and in "ESET\NOD Antivirus" folder in Program FIles. Do I need to remove them too?

I think my problem is similar to:
http://groups.google.com/group/ru-firebird/msg/d821ee164537e606
http://www.nabble.com/Firebird-2.5.0.25702---problem-with-embedded-td25802638.html

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

You said you installed CRT using vcredist_x86.exe. In this case you don't need any additional copies of CRT.
I wonder why you not found CRT files in WinSxS folder.

I don't comment not FB software, such as NOD.
For FB i recommend to remove additional CRT copies.

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

There are 4 copies of CRT files in WinSxS folder (i cannot find there Microsoft.VC80.CRT.manifest files, only dll).

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Reproduced with snapshot builds. My own builds are ok.

Seems VS 2005 SP1 (snapshot builds) works with manifests differently than VS 2005 without SP1 (my environment, also official compiler).
Will investigate deeper.

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Could you try today's snapshot of 3.0.0.25932 ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Vitali Borushko (flakekun)

Snapshot 3.0.0.25932 works fine. Will it be fixed in 2.5 snapshots?

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

> Snapshot 3.0.0.25932 works fine.
Thanks

> Will it be fixed in 2.5 snapshots?
Sure

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC2 [ 10372 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 2.5 RC1 [ 10362 ]

Fix Version: 2.5 RC2 [ 10372 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment