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

Corrupted files make the software crash #31

Open
slapmoreass opened this issue Oct 25, 2024 · 0 comments
Open

Corrupted files make the software crash #31

slapmoreass opened this issue Oct 25, 2024 · 0 comments

Comments

@slapmoreass
Copy link

This is an issue that may come up very rarely but I wanted to share it anyway. I basically have corrupted png files and this causes the program to exit. Maybe making a rule that jumps those file would make sense but it's still a rare case. Otherwise all good, works wonders and the software is very useful already, thank you QiuYannnn!

Here is what the error looks like:

Processing irspectra (2).png ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00:00
Traceback (most recent call last):
File "D:\AI file organizer\Local-File-Organizer\main.py", line 337, in
main()
File "D:\AI file organizer\Local-File-Organizer\main.py", line 251, in main
data_images = process_image_files(image_files, image_inference, text_inference, silent=silent_mode, log_file=log_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI file organizer\Local-File-Organizer\image_data_processing.py", line 59, in process_image_files
data = process_single_image(image_path, image_inference, text_inference, silent=silent, log_file=log_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI file organizer\Local-File-Organizer\image_data_processing.py", line 36, in process_single_image
foldername, filename, description = generate_image_metadata(image_path, progress, task_id, image_inference, text_inference)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI file organizer\Local-File-Organizer\image_data_processing.py", line 71, in generate_image_metadata
description_generator = image_inference._chat(description_prompt, image_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\name\anaconda3\envs\local_file_organizer\Lib\site-packages\nexa\gguf\nexa_inference_vlm.py", line 332, in _chat
return self.model.create_chat_completion(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\name\anaconda3\envs\local_file_organizer\Lib\site-packages\nexa\gguf\llama\llama.py", line 1912, in create_chat_completion
return handler(
^^^^^^^^
File "C:\Users\name\anaconda3\envs\local_file_organizer\Lib\site-packages\nexa\gguf\llama\llama_chat_format.py", line 2842, in call
if llama.n_tokens + embed.contents.n_image_pos > llama.n_ctx():
^^^^^^^^^^^^^^
ValueError: NULL pointer access

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

1 participant