Comments (4)
Hello @okuma10, can you show me the code that create this error ?
from vulkan.
Well...I'm not sure if it is something in my code, this is the third time I make a new project and whenever I enable the INFO_BIT , I get that error
But I found I get the error when I make the logical device,
I get the messages, but then I get the same amount of lines in errors
Here is a snippet from the last message line and the first error line in the output:
16, 1, <cdata 'struct VkDebugUtilsMessengerCallbackDataEXT *' 0x000000D411DE8390>, <cdata 'void *' NULL>
From cffi callback <function _external_vkDebugUtilsMessengerCallbackEXT at 0x00000247C2C2EC18>:
Trying to convert the result back to C:
TypeError: an integer is required
but here is my debug report function:
def Debugger(*args):
print(args)
here is the debug create info, it's a function so instance
and function
refer to variables passed to it. But function is basically the debug function above:
debug_create_info = VkDebugUtilsMessengerCreateInfoEXT(
sType=VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT,
pNext=None,
flags=0,
messageSeverity=VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT|
VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT|
VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT,
messageType=VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT|
VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT |
VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT,
pfnUserCallback=function
)
vkCreateDebugUtilsMessengerEXT = vkGetInstanceProcAddr(instance,"vkCreateDebugUtilsMessengerEXT")
debug_messenger = vkCreateDebugUtilsMessengerEXT(instance,debug_create_info,None)
setting things up obviously works, because I get the message before the errors.
this is my logical device creation
createInfo = VkDeviceCreateInfo(
sType=VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
pNext=None,
flags=0,
queueCreateInfoCount=len(queues),
pQueueCreateInfos=queues,
enabledLayerCount=0,
ppEnabledLayerNames=None,
enabledExtensionCount=0,
ppEnabledExtensionNames=None,
pEnabledFeatures=None
)
self.logical_device = vkCreateDevice(physical_device,createInfo,None)
again everything is fine in the logical device creation, since I get the handle and those messages , if I get args[2].pMessage reports loading of device extensions:
b'Device Extension: VK_KHR_driver_properties (C:\\Windows\\System32\\DriverStore\\FileRepository\\u0357776.inf_amd64_5cb88e05332b51cb\\B357669\\.\\amdvlk64.dll) version 0.0.1'
from vulkan.
Hello @okuma10, Can you give me the minimum of code allowing me to reproduce your issue ?
Thanks
from vulkan.
I think I just found the reason for the error, my debug function needed to have a return True
at the end.
from vulkan.
Related Issues (20)
- example program fails with various validation errors HOT 13
- unable to install HOT 2
- Some API Wrappers are built-to-fail HOT 2
- Example program freezes my PC when interacting with something HOT 3
- Need VK_RESULT HOT 1
- Vulkan 1.2.141.2 HOT 3
- SDL2 example is now broken(easy to fix) HOT 3
- Vulkan is Failing to Install on Windows 10 HOT 3
- Generating for latest version (1.2.162.1) HOT 4
- Errors out HOT 1
- example_sdl2.py crash in mainloop: BadDrawable HOT 2
- vkAcquireNextImageKHR results in VkSuboptimalKhr HOT 1
- VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME constant missing? HOT 3
- Getting the int handles to vulkan objects. HOT 1
- Fix "module 'collections' has no attribute 'Iterable'" HOT 2
- Update version available on PyPi HOT 4
- Missing Struct VkPipelineCacheHeaderVersionOne HOT 1
- Cannot run example shown in readme HOT 2
- Compatibility flag is not available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan.