-
Notifications
You must be signed in to change notification settings - Fork 5
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
Instance create fail:Initialization of an object has failed. #3
Comments
Hi,
cl-vulkan will exhibit this error if it cannot find the vulkan-loader or if
the vulkan-loader cannot find the installable client driver (icd).
Check these lines in ifc/load-foreign-libs.lisp, line 26 and line 54:
#+linux (concatenate 'string *home-dir* "/swiftshader-build1/Linux")
(sb-posix:setenv "VK_ICD_FILENAMES" (concatenate 'string
*vulkan-sdk-path* "/vk_swiftshader_icd.json") 0)
The first line must contain a path to libvulkan.so.1. You may have to
install the vulkan sdk from lunarg. The second line should contain a path
pointing to the ..._icd.json file of the vulkan provider for your system.
This line may be optional on linux systems with a real video card.
cl-vulkan was tested in a Linux virtual machine and your feedback is the
first feedback I've gotten about running with on-the-metal Linux. Try that
and let me know. What kind of video card do you have?
Thanks,
Andrew Wolven
…On Wed, Dec 16, 2020 at 8:25 AM aiffc ***@***.***> wrote:
When run the demo use sbcl in ubuntu, i get the error message
Initialization of an object has failed.
And i tried to use c++ to run the vukan tutorial demo, it's success.
I found when i create the instance, function
glfwGetRequiredInstanceExtensions return a null pointer.
Here is my fail info:
`Initialization of an object has failed.
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETRY] Retry SLY mREPL evaluation request.
1: [*ABORT] Return to SLY's top level.
2: [ABORT] abort thread (#<THREAD "sly-channel-1-mrepl-remote-1" RUNNING
{10023D24E3}>)
Backtrace:
0: (VK:CHECK-VK-RESULT -3)
Locals:
RESULT = -3
1: (VK:CREATE-INSTANCE :TITLE "CL-Vulkan Demo" :APPLICATION-NAME NIL
:APPLICATION-VERSION 0 :ENGINE-NAME "" :ENGINE-VERSION 0 :LAYER-NAMES NIL
:EXTENSION-NAMES NIL :API-VERSION NIL :ALLOCATOR NIL)
Locals:
#:.DEFAULTING-TEMP. = NIL
#:.DEFAULTING-TEMP.#1 <#1> = 0
#:.DEFAULTING-TEMP.#2 <#2> = 0
#:.DEFAULTING-TEMP.#3 <#3> =
NIL
#:.DEFAULTING-TEMP.#4 = NIL
#:.DEFAULTING-TEMP.#5 = NIL
#:.DEFAULTING-TEMP.#6 = NIL
ALLOCATOR = #<ALLOCATION-CALLBACKS #.(SB-SYS:INT-SAP #X00000000)>
DEBUG-REPORT-PRESENT = NIL
ENGINE-NAME = ""
EXTENSION-COUNT = 0
LAYER-COUNT = 0
#:N-SUPPLIED-0 = 0
#:N-SUPPLIED-1 = 0
#:N-SUPPLIED-2 = 0
P-APPLICATION-NAME = #.(SB-SYS:INT-SAP #X7F866C00C430)
P-ENGINE-NAME = #.(SB-SYS:INT-SAP #X7F866C007510)
PP-ENABLED-EXTENSION-NAMES = #.(SB-SYS:INT-SAP #X7F866C007170)
PP-ENABLED-EXTENSION-NAMES-WITH-DEBUG = #.(SB-SYS:INT-SAP #X7F866C001A80)
PP-ENABLED-LAYER-NAMES-WITH-VALIDATION = #.(SB-SYS:INT-SAP #X7F866C002290)
TITLE = "CL-Vulkan Demo"
2: (VK:SETUP-VULKAN #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}>
:HEIGHT 480 :WIDTH 640)
Locals:
#:.DEFAULTING-TEMP. = 0
APP = #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}>
#:G19 = NIL
#:G21 = NIL
#:G23 = NIL
SB-DEBUG::MORE = (:HEIGHT 480 :WIDTH 640)
3: ((:METHOD INITIALIZE-INSTANCE :BEFORE (VK:VULKAN-APPLICATION-MIXIN))
#<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}> :HEIGHT 480 :WIDTH 640)
[fast-method]
Locals:
VK::INSTANCE = #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}>
SB-DEBUG::MORE = (:HEIGHT 480 :WIDTH 640)
4: ((LAMBDA (SB-PCL::|.P0.| SB-PCL::|.P1.|)) # #)
[No Locals]
5: (CL-VULKAN-DEMO::RUN :WIDTH 640 :HEIGHT 480)
Locals:
HEIGHT = 480
WIDTH = 640
6: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CL-VULKAN-DEMO::RUN) #)
Locals:
SB-KERNEL:LEXENV = #
SB-IMPL::ORIGINAL-EXP = (CL-VULKAN-DEMO::RUN)
7: (EVAL (CL-VULKAN-DEMO::RUN))
Locals:
SB-IMPL::ORIGINAL-EXP = (CL-VULKAN-DEMO::RUN)
8: ((LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1))
9: (SLYNK::CALL-WITH-RETRY-RESTART "Retry SLY mREPL evaluation request."
#<CLOSURE (LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1) {100536A37B}>)
10: ((LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1))
11: ((LAMBDA NIL :IN SLYNK::CALL-WITH-LISTENER))
12: (SLYNK::CALL-WITH-BINDINGS ((*PACKAGE* . #<PACKAGE
"COMMON-LISP-USER">) (* . #1
<#1>=(:CL-VULKAN-DEMO)) (** .
#2 <#2>=(:CL-VULKAN)) (*** #P"/.vulkan/cl-vulkan/"
#P"/home/aif/.emacs.d/elpa/sly-20200925.1020/con..
13: (SLYNK-MREPL::MREPL-EVAL-1 #<SLYNK-MREPL::MREPL mrepl-1-1>
"(cl-vulkan-demo::run)")
14: (SLYNK-MREPL::MREPL-EVAL #<SLYNK-MREPL::MREPL mrepl-1-1>
"(cl-vulkan-demo::run)")
15: (SLYNK:PROCESS-REQUESTS NIL)
16: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
17: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
18: (SLYNK-SBCL::CALL-WITH-BREAK-HOOK # #<CLOSURE (LAMBDA NIL :IN
SLYNK::SPAWN-CHANNEL-THREAD) {10023D80AB}>)
19: ((FLET SLYNK-BACKEND:CALL-WITH-DEBUGGER-HOOK :IN
"/home/aif/.emacs.d/elpa/sly-20200925.1020/slynk/backend/sbcl.lisp") #
#<CLOSURE (LAMBDA NIL :IN SLYNK::SPAWN-CHANN..
20: ((LAMBDA NIL :IN SLYNK::CALL-WITH-LISTENER))
21: (SLYNK::CALL-WITH-BINDINGS ((*PACKAGE* . #<PACKAGE
"COMMON-LISP-USER">) (* . #1
<#1>=(:CL-VULKAN-DEMO)) (** .
#2 <#2>=(:CL-VULKAN)) (*** #P"/.vulkan/cl-vulkan/"
#P"/home/aif/.emacs.d/elpa/sly-20200925.1020/con..
22: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
23: ((FLET SB-UNIX::BODY :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
24: ((FLET "WITHOUT-INTERRUPTS-BODY-4" :IN
SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
25: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN
SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
26: ((FLET "WITHOUT-INTERRUPTS-BODY-1" :IN SB-THREAD::CALL-WITH-MUTEX))
27: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET
SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE)
{7F867A9A6D7B}> #<SB-THREAD:MUTEX "thread result lock" owner:
#<SB-THREAD:THREAD "sly..
28: (SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE #<SB-THREAD:THREAD
"sly-channel-1-mrepl-remote-1" RUNNING {10023D24E3}> NIL #<CLOSURE (LAMBDA
NIL :IN SLYNK::SPAWN-CHANNEL-THREAD) {10023D1ACB}> NIL)
29: ("foreign function: call_into_lisp")
30: ("foreign function: new_thread_trampoline")
Initialization of an object has failed.
[Condition of type SIMPLE-ERROR]
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABGMMIUL7L5N3XPTAYIMJTSVC7MZANCNFSM4U6CDMVA>
.
|
Thanks for you help i will try it later,i think i just set the sdk path for the loader |
When run the demo use sbcl in ubuntu, i get the error message Initialization of an object has failed.
And i tried to use c++ to run the vukan tutorial demo, it's success.
I found when i create the instance, function glfwGetRequiredInstanceExtensions return a null pointer.
Here is my fail info:
`Initialization of an object has failed.
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETRY] Retry SLY mREPL evaluation request.
1: [*ABORT] Return to SLY's top level.
2: [ABORT] abort thread (#<THREAD "sly-channel-1-mrepl-remote-1" RUNNING {10023D24E3}>)
Backtrace:
0: (VK:CHECK-VK-RESULT -3)
Locals:
RESULT = -3
1: (VK:CREATE-INSTANCE :TITLE "CL-Vulkan Demo" :APPLICATION-NAME NIL :APPLICATION-VERSION 0 :ENGINE-NAME "" :ENGINE-VERSION 0 :LAYER-NAMES NIL :EXTENSION-NAMES NIL :API-VERSION NIL :ALLOCATOR NIL)
Locals:
#:.DEFAULTING-TEMP. = NIL
#:.DEFAULTING-TEMP.#1 = 0
#:.DEFAULTING-TEMP.#2 = 0
#:.DEFAULTING-TEMP.#3 = NIL
#:.DEFAULTING-TEMP.#4 = NIL
#:.DEFAULTING-TEMP.#5 = NIL
#:.DEFAULTING-TEMP.#6 = NIL
ALLOCATOR = #<ALLOCATION-CALLBACKS #.(SB-SYS:INT-SAP #X00000000)>
DEBUG-REPORT-PRESENT = NIL
ENGINE-NAME = ""
EXTENSION-COUNT = 0
LAYER-COUNT = 0
#:N-SUPPLIED-0 = 0
#:N-SUPPLIED-1 = 0
#:N-SUPPLIED-2 = 0
P-APPLICATION-NAME = #.(SB-SYS:INT-SAP #X7F866C00C430)
P-ENGINE-NAME = #.(SB-SYS:INT-SAP #X7F866C007510)
PP-ENABLED-EXTENSION-NAMES = #.(SB-SYS:INT-SAP #X7F866C007170)
PP-ENABLED-EXTENSION-NAMES-WITH-DEBUG = #.(SB-SYS:INT-SAP #X7F866C001A80)
PP-ENABLED-LAYER-NAMES-WITH-VALIDATION = #.(SB-SYS:INT-SAP #X7F866C002290)
TITLE = "CL-Vulkan Demo"
2: (VK:SETUP-VULKAN #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}> :HEIGHT 480 :WIDTH 640)
Locals:
#:.DEFAULTING-TEMP. = 0
APP = #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}>
#:G19 = NIL
#:G21 = NIL
#:G23 = NIL
SB-DEBUG::MORE = (:HEIGHT 480 :WIDTH 640)
3: ((:METHOD INITIALIZE-INSTANCE :BEFORE (VK:VULKAN-APPLICATION-MIXIN)) #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}> :HEIGHT 480 :WIDTH 640) [fast-method]
Locals:
VK::INSTANCE = #<CL-VULKAN-DEMO::DEMO-APPLICATION {100536B793}>
SB-DEBUG::MORE = (:HEIGHT 480 :WIDTH 640)
4: ((LAMBDA (SB-PCL::|.P0.| SB-PCL::|.P1.|)) # #)
[No Locals]
5: (CL-VULKAN-DEMO::RUN :WIDTH 640 :HEIGHT 480)
Locals:
HEIGHT = 480
WIDTH = 640
6: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CL-VULKAN-DEMO::RUN) #)
Locals:
SB-KERNEL:LEXENV = #
SB-IMPL::ORIGINAL-EXP = (CL-VULKAN-DEMO::RUN)
7: (EVAL (CL-VULKAN-DEMO::RUN))
Locals:
SB-IMPL::ORIGINAL-EXP = (CL-VULKAN-DEMO::RUN)
8: ((LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1))
9: (SLYNK::CALL-WITH-RETRY-RESTART "Retry SLY mREPL evaluation request." #<CLOSURE (LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1) {100536A37B}>)
10: ((LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1))
11: ((LAMBDA NIL :IN SLYNK::CALL-WITH-LISTENER))
12: (SLYNK::CALL-WITH-BINDINGS ((PACKAGE . #<PACKAGE "COMMON-LISP-USER">) (* . #1=(:CL-VULKAN-DEMO)) (** . #2=(:CL-VULKAN)) (*** #P"
/.vulkan/cl-vulkan/" #P"/home/aif/.emacs.d/elpa/sly-20200925.1020/con../.vulkan/cl-vulkan/" #P"/home/aif/.emacs.d/elpa/sly-20200925.1020/con..13: (SLYNK-MREPL::MREPL-EVAL-1 #<SLYNK-MREPL::MREPL mrepl-1-1> "(cl-vulkan-demo::run)")
14: (SLYNK-MREPL::MREPL-EVAL #<SLYNK-MREPL::MREPL mrepl-1-1> "(cl-vulkan-demo::run)")
15: (SLYNK:PROCESS-REQUESTS NIL)
16: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
17: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
18: (SLYNK-SBCL::CALL-WITH-BREAK-HOOK # #<CLOSURE (LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD) {10023D80AB}>)
19: ((FLET SLYNK-BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/home/aif/.emacs.d/elpa/sly-20200925.1020/slynk/backend/sbcl.lisp") # #<CLOSURE (LAMBDA NIL :IN SLYNK::SPAWN-CHANN..
20: ((LAMBDA NIL :IN SLYNK::CALL-WITH-LISTENER))
21: (SLYNK::CALL-WITH-BINDINGS ((PACKAGE . #<PACKAGE "COMMON-LISP-USER">) (* . #1=(:CL-VULKAN-DEMO)) (** . #2=(:CL-VULKAN)) (*** #P"
22: ((LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD))
23: ((FLET SB-UNIX::BODY :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
24: ((FLET "WITHOUT-INTERRUPTS-BODY-4" :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
25: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE))
26: ((FLET "WITHOUT-INTERRUPTS-BODY-1" :IN SB-THREAD::CALL-WITH-MUTEX))
27: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE) {7F867A9A6D7B}> #<SB-THREAD:MUTEX "thread result lock" owner: #<SB-THREAD:THREAD "sly..
28: (SB-THREAD::NEW-LISP-THREAD-TRAMPOLINE #<SB-THREAD:THREAD "sly-channel-1-mrepl-remote-1" RUNNING {10023D24E3}> NIL #<CLOSURE (LAMBDA NIL :IN SLYNK::SPAWN-CHANNEL-THREAD) {10023D1ACB}> NIL)
29: ("foreign function: call_into_lisp")
30: ("foreign function: new_thread_trampoline")
Initialization of an object has failed.
[Condition of type SIMPLE-ERROR]
`
The text was updated successfully, but these errors were encountered: