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

png couldn't be found with 040ae47550654344b620e3372aa741b9f50af9a9 #47

Closed
FirstLoveLife opened this issue Mar 14, 2019 · 3 comments
Closed

Comments

@FirstLoveLife
Copy link
Contributor

FirstLoveLife commented Mar 14, 2019

Editor example

~/dev/Acid >>> ./build/bin/Editor                                 ±[●●][master]
-- Instance --
Layers: VK_LAYER_VALVE_steam_overlay_64, VK_LAYER_VALVE_steam_overlay_32, VK_LAYER_LUNARG_screenshot, VK_LAYER_LUNARG_monitor, VK_LAYER_LUNARG_vktrace, VK_LAYER_LUNARG_device_simulation, VK_LAYER_LUNARG_api_dump, VK_LAYER_LUNARG_core_validation, VK_LAYER_GOOGLE_threading, VK_LAYER_GOOGLE_unique_objects, VK_LAYER_LUNARG_object_tracker, VK_LAYER_LUNARG_parameter_validation, VK_LAYER_LUNARG_standard_validation, 
-- Done --
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
-- Physical Device: 358 'Intel(R) Ivybridge Mobile' --
Extensions: VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_dedicated_allocation, VK_KHR_descriptor_update_template, VK_KHR_device_group, VK_KHR_driver_properties, VK_KHR_external_fence, VK_KHR_external_fence_fd, VK_KHR_external_memory, VK_KHR_external_memory_fd, VK_KHR_external_semaphore, VK_KHR_external_semaphore_fd, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_incremental_present, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_push_descriptor, VK_KHR_relaxed_block_layout, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_sampler_ycbcr_conversion, VK_KHR_shader_draw_parameters, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain, VK_KHR_variable_pointers, VK_KHR_multiview, VK_EXT_display_control, VK_EXT_external_memory_dma_buf, VK_EXT_shader_viewport_index_layer, VK_EXT_vertex_attribute_divisor, VK_EXT_calibrated_timestamps, VK_GOOGLE_decorate_string, VK_GOOGLE_hlsl_functionality1, 
Type: Integrated
Vendor: Intel
Supports Version: 1.1.90
Header Version: 100
-- Done --
Selected Physical Device: 'Intel(R) Ivybridge Mobile', 358
Max MSAA Samples: 8
File System error while adding a path or zip(Resources/Engine): not found
Error while opening file to load Guis/White.png: not found
Texture could not be loaded: 'Guis/White.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/White.png' loaded in 0.091ms
Error while opening file to load Guis/Button_Filled.png: not found
Texture could not be loaded: 'Guis/Button_Filled.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/Button_Filled.png' loaded in 0.028ms
Error while opening file to load Guis/Triangle_Down.png: not found
Texture could not be loaded: 'Guis/Triangle_Down.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/Triangle_Down.png' loaded in 0.022ms
Error while opening file to load Fonts/ProximaNova/Regular.png: not found
Texture could not be loaded: 'Fonts/ProximaNova/Regular.png'
Error while opening file to load Undefined.png: not found
Texture 'Fonts/ProximaNova/Regular.png' loaded in 0.022ms
terminate called after throwing an instance of 'std::invalid_argument'
  what():  File not found: Fonts/ProximaNova/Regular.fnt
zsh: abort (core dumped)  ./build/bin/Editor

TestFont Example

~/dev/Acid >>> ./build/bin/TestFont                               ±[●●][master]
-- Instance --
Layers: VK_LAYER_VALVE_steam_overlay_64, VK_LAYER_VALVE_steam_overlay_32, VK_LAYER_LUNARG_screenshot, VK_LAYER_LUNARG_monitor, VK_LAYER_LUNARG_vktrace, VK_LAYER_LUNARG_device_simulation, VK_LAYER_LUNARG_api_dump, VK_LAYER_LUNARG_core_validation, VK_LAYER_GOOGLE_threading, VK_LAYER_GOOGLE_unique_objects, VK_LAYER_LUNARG_object_tracker, VK_LAYER_LUNARG_parameter_validation, VK_LAYER_LUNARG_standard_validation, 
-- Done --
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
-- Physical Device: 358 'Intel(R) Ivybridge Mobile' --
Extensions: VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_dedicated_allocation, VK_KHR_descriptor_update_template, VK_KHR_device_group, VK_KHR_driver_properties, VK_KHR_external_fence, VK_KHR_external_fence_fd, VK_KHR_external_memory, VK_KHR_external_memory_fd, VK_KHR_external_semaphore, VK_KHR_external_semaphore_fd, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_incremental_present, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_push_descriptor, VK_KHR_relaxed_block_layout, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_sampler_ycbcr_conversion, VK_KHR_shader_draw_parameters, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain, VK_KHR_variable_pointers, VK_KHR_multiview, VK_EXT_display_control, VK_EXT_external_memory_dma_buf, VK_EXT_shader_viewport_index_layer, VK_EXT_vertex_attribute_divisor, VK_EXT_calibrated_timestamps, VK_GOOGLE_decorate_string, VK_GOOGLE_hlsl_functionality1, 
Type: Integrated
Vendor: Intel
Supports Version: 1.1.90
Header Version: 100
-- Done --
Selected Physical Device: 'Intel(R) Ivybridge Mobile', 358
Max MSAA Samples: 8
File System error while adding a path or zip(Resources/Engine): not found
Working Directory: /home/firstlove/dev/Acid
Error while opening file to load Icons/Icon-16.png: not found
Texture could not be loaded: 'Icons/Icon-16.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-24.png: not found
Texture could not be loaded: 'Icons/Icon-24.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-32.png: not found
Texture could not be loaded: 'Icons/Icon-32.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-48.png: not found
Texture could not be loaded: 'Icons/Icon-48.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-64.png: not found
Texture could not be loaded: 'Icons/Icon-64.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-96.png: not found
Texture could not be loaded: 'Icons/Icon-96.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-128.png: not found
Texture could not be loaded: 'Icons/Icon-128.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-192.png: not found
Texture could not be loaded: 'Icons/Icon-192.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Icons/Icon-256.png: not found
Texture could not be loaded: 'Icons/Icon-256.png'
Error while opening file to load Undefined.png: not found
Error while opening file to load Guis/White.png: not found
Texture could not be loaded: 'Guis/White.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/White.png' loaded in 0.043ms
Error while opening file to load Guis/Button_Filled.png: not found
Texture could not be loaded: 'Guis/Button_Filled.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/Button_Filled.png' loaded in 0.037ms
Error while opening file to load Guis/Button.png: not found
Texture could not be loaded: 'Guis/Button.png'
Error while opening file to load Undefined.png: not found
Texture 'Guis/Button.png' loaded in 0.022ms
Error while opening file to load Fonts/ProximaNova/Regular.png: not found
Texture could not be loaded: 'Fonts/ProximaNova/Regular.png'
Error while opening file to load Undefined.png: not found
Texture 'Fonts/ProximaNova/Regular.png' loaded in 0.020ms
terminate called after throwing an instance of 'std::invalid_argument'
  what():  File not found: Fonts/ProximaNova/Regular.fnt
zsh: abort (core dumped)  ./build/bin/TestFont
@mattparks
Copy link
Member

Scripts/link_resources.sh describes the basics of what you need. Normally the resources folder could be copied to your output directory to Resources/Engine, however on your system your runtime location is in the Acid root. In the main files on your system you could switch from "Resources/Engine" to "Resources". It may be worthwhile for me to search for that path of the engine specific one is missing.

@FirstLoveLife
Copy link
Contributor Author

FirstLoveLife commented Mar 14, 2019

my build dir is build not any of cmake-build-debug/cmake-build-release/Build list in link_resources.sh.
So, I ln -s manually:

~/.../build/bin >>> ./Editor                                      ±[●●][master]
-- Instance --
Layers: VK_LAYER_VALVE_steam_overlay_64, VK_LAYER_VALVE_steam_overlay_32, VK_LAYER_LUNARG_screenshot, VK_LAYER_LUNARG_monitor, VK_LAYER_LUNARG_vktrace, VK_LAYER_LUNARG_device_simulation, VK_LAYER_LUNARG_api_dump, VK_LAYER_LUNARG_core_validation, VK_LAYER_GOOGLE_threading, VK_LAYER_GOOGLE_unique_objects, VK_LAYER_LUNARG_object_tracker, VK_LAYER_LUNARG_parameter_validation, VK_LAYER_LUNARG_standard_validation, 
-- Done --
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
-- Physical Device: 358 'Intel(R) Ivybridge Mobile' --
Extensions: VK_KHR_bind_memory2, VK_KHR_create_renderpass2, VK_KHR_dedicated_allocation, VK_KHR_descriptor_update_template, VK_KHR_device_group, VK_KHR_driver_properties, VK_KHR_external_fence, VK_KHR_external_fence_fd, VK_KHR_external_memory, VK_KHR_external_memory_fd, VK_KHR_external_semaphore, VK_KHR_external_semaphore_fd, VK_KHR_get_memory_requirements2, VK_KHR_image_format_list, VK_KHR_incremental_present, VK_KHR_maintenance1, VK_KHR_maintenance2, VK_KHR_maintenance3, VK_KHR_push_descriptor, VK_KHR_relaxed_block_layout, VK_KHR_sampler_mirror_clamp_to_edge, VK_KHR_sampler_ycbcr_conversion, VK_KHR_shader_draw_parameters, VK_KHR_storage_buffer_storage_class, VK_KHR_swapchain, VK_KHR_variable_pointers, VK_KHR_multiview, VK_EXT_display_control, VK_EXT_external_memory_dma_buf, VK_EXT_shader_viewport_index_layer, VK_EXT_vertex_attribute_divisor, VK_EXT_calibrated_timestamps, VK_GOOGLE_decorate_string, VK_GOOGLE_hlsl_functionality1, 
Type: Integrated
Vendor: Intel
Supports Version: 1.1.90
Header Version: 100
-- Done --
Selected Physical Device: 'Intel(R) Ivybridge Mobile', 358
Max MSAA Samples: 8
Error while closing file Guis/White.png: no error
Texture 'Guis/White.png' loaded in 162.755ms
Error while closing file Guis/Button_Filled.png: no error
Texture 'Guis/Button_Filled.png' loaded in 12.387ms
Error while closing file Guis/Triangle_Down.png: no error
Texture 'Guis/Triangle_Down.png' loaded in 0.163ms
Error while closing file Fonts/ProximaNova/Regular.png: no error
Texture 'Fonts/ProximaNova/Regular.png' loaded in 10.053ms
Error while closing file Fonts/ProximaNova/Regular.ttf: no error
Error while closing file Sounds/Button1.ogg: no error
Sound Buffer 'Sounds/Button1.ogg' loaded in 4.325ms
Error while closing file Guis/Button.png: no error
Texture 'Guis/Button.png' loaded in 12.874ms
Error while closing file Guis/ColourWheel.png: no error
Texture 'Guis/ColourWheel.png' loaded in 8.967ms
Error while closing file Guis/Radio.png: no error
Texture 'Guis/Radio.png' loaded in 14.401ms
Error while closing file Guis/Radio_X.png: no error
Texture 'Guis/Radio_X.png' loaded in 0.161ms
Error while closing file Guis/Radio_Filled.png: no error
Texture 'Guis/Radio_Filled.png' loaded in 0.086ms
Error while closing file Icons/Icon-16.png: no error
Error while closing file Icons/Icon-24.png: no error
Error while closing file Icons/Icon-32.png: no error
Error while closing file Icons/Icon-48.png: no error
Error while closing file Icons/Icon-64.png: no error
Error while closing file Icons/Icon-96.png: no error
Error while closing file Icons/Icon-128.png: no error
Error while closing file Icons/Icon-192.png: no error
Error while closing file Icons/Icon-256.png: no error
[Host] Updating plugin
Render Stage built in 2.220ms
 [ VUID_Undefined ] Object: VK_NULL_HANDLE (Type = 0) | vkCreateImage(): Format VK_FORMAT_D32_SFLOAT_S8_UINT is not supported for this combination of parameters.
 [ VUID-VkImageViewCreateInfo-usage-02274 ] Object: 0xfd (Type = 10) | vkCreateImageView(): pCreateInfo->format VK_FORMAT_D32_SFLOAT_S8_UINT with tiling VK_IMAGE_TILING_OPTIMAL does not support usage that includes VK_IMAGE_USAGE_SAMPLED_BIT. The Vulkan spec states: If usage contains VK_IMAGE_USAGE_SAMPLED_BIT, then the format features of the resultant image view must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImageViewCreateInfo-usage-02274)
Render Stage built in 8.667ms
Render Stage built in 0.138ms
Error while closing file Shaders/Deferred/Deferred.vert: no error
Error while closing file Shaders/Deferred/Deferred.frag: no error
 [ UNASSIGNED-CoreValidation-Shader-FeatureNotEnabled ] Object: VK_NULL_HANDLE (Type = 0) | Shader requires fragmentStoresAndAtomics but is not enabled on the device
Pipeline 'Shaders/Deferred/Deferred.frag' created in 112.485ms
Error while closing file Shaders/Brdf.comp: no error
 [ UNASSIGNED-CoreValidation-Shader-DescriptorTypeMismatch ] Object: VK_NULL_HANDLE (Type = 0) | Type mismatch on descriptor slot 0.0 (expected `VK_DESCRIPTOR_TYPE_STORAGE_IMAGE`) but descriptor of type VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
PipelineCompute pipeline 'Shaders/Brdf.comp' created in 15.120ms
File 'Shaders/Deferred.json' saved in 0.527ms
Error while closing file Shaders/Particles/Particle.vert: not found
Error while closing file Shaders/Particles/Particle.frag: no error
 [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object: 0x13a (Type = 15) | Vertex attribute at location 2 not consumed by vertex shader
Pipeline 'Shaders/Particles/Particle.frag' created in 7.214ms
Error while closing file Shaders/Post/Default.vert: no error
Error while closing file Shaders/Post/Default.frag: no error
 [ UNASSIGNED-CoreValidation-Shader-FeatureNotEnabled ] Object: VK_NULL_HANDLE (Type = 0) | Shader requires fragmentStoresAndAtomics but is not enabled on the device
 [ UNASSIGNED-CoreValidation-Shader-DescriptorTypeMismatch ] Object: VK_NULL_HANDLE (Type = 0) | Type mismatch on descriptor slot 0.0 (expected `VK_DESCRIPTOR_TYPE_STORAGE_IMAGE`) but descriptor of type VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER
Pipeline 'Shaders/Post/Default.frag' created in 4.861ms
Error while closing file Shaders/Post/Default.vert: no error
Error while closing file Shaders/Post/Blit.frag: no error
Pipeline 'Shaders/Post/Blit.frag' created in 4.307ms
Error while closing file Shaders/Guis/Gui.vert: no error
Error while closing file Shaders/Billboard.glsl: no error
Error while closing file Shaders/Guis/Gui.frag: no error
 [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object: 0x14c (Type = 15) | Vertex attribute at location 2 not consumed by vertex shader
Pipeline 'Shaders/Guis/Gui.frag' created in 21.310ms
Error while closing file Shaders/Fonts/Font.vert: no error
Error while closing file Shaders/Billboard.glsl: no error
Error while closing file Shaders/Fonts/Font.frag: no error
 [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object: 0x152 (Type = 15) | Vertex attribute at location 2 not consumed by vertex shader
Pipeline 'Shaders/Fonts/Font.frag' created in 15.928ms
^C

~/.../build/bin >>> cd Resources/Engine                           ±[●●][master]
~/.../Resources/Engine >>> ls                                      ±[●][master]
Fonts   Guis   Logos    Shaders  Undefined2.png  Undefined.png
Gizmos  Icons  Objects  Sounds   Undefined.obj
~/.../Resources/Engine >>> pwd                                     ±[●][master]
/home/firstlove/dev/Acid/build/bin/Resources/Engine

the error `Error while closing file .... no error" is a bit weird. any insight? @mattparks

It may be worthwhile for me to search for that path of the engine specific one is missing.

Maybe it can be done by cmake at config/build period? a script is not convinently because the name of build dir is deternimated by cmake(just like my build/ case)

Update

Only Editor Example will pop up error(as showed above) now, other examples can run successfully!

@FirstLoveLife
Copy link
Contributor Author

I'll add a cmake pr to solve Resources/Engine search issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants