dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.25k stars 150 forks source link

Inpaint Segmentation fault #468

Closed Samurai-Kyo closed 1 month ago

Samurai-Kyo commented 1 month ago

Select an inpainter from the inpainter dropdown menu. Scroll the list with your mouse wheel. Crashes with a segmentation fault. image

bropines commented 1 month ago

Select an inpainter from the inpainter dropdown menu. Scroll the list with your mouse wheel. Crashes with a segmentation fault. image

Can you send console log of this error?

Samurai-Kyo commented 1 month ago

[INFO ] modeling_utils:_load_pretrained_model:3992 - All model checkpoint weights were used when initializing VisionEncoderDecoderModel.

[INFO ] modeling_utils:_load_pretrained_model:3992 - All model checkpoint weights were used when initializing VisionEncoderDecoderModel.

All model checkpoint weights were used when initializing VisionEncoderDecoderModel.

[INFO ] modeling_utils:_load_pretrained_model:4000 - All the weights of VisionEncoderDecoderModel were initialized from the model checkpoint at data/models/manga-ocr-base. If your task is similar to the task the model of the checkpoint was trained on, you can already use VisionEncoderDecoderModel for predictions without further training. [INFO ] modeling_utils:_load_pretrained_model:4000 - All the weights of VisionEncoderDecoderModel were initialized from the model checkpoint at data/models/manga-ocr-base. If your task is similar to the task the model of the checkpoint was trained on, you can already use VisionEncoderDecoderModel for predictions without further training. All the weights of VisionEncoderDecoderModel were initialized from the model checkpoint at data/models/manga-ocr-base. If your task is similar to the task the model of the checkpoint was trained on, you can already use VisionEncoderDecoderModel for predictions without further training. [INFO ] modeling_utils:from_pretrained:3544 - Generation config file not found, using a generation config created from the model config. [INFO ] modeling_utils:from_pretrained:3544 - Generation config file not found, using a generation config created from the model config. Generation config file not found, using a generation config created from the model config. [INFO ] module_manager:on_finish_setocr:844 - OCR set to manga_ocr [INFO ] config:save_config:211 - Config saved [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. [WARNING] module_manager:setInpainter:814 - Terminating a running inpaint thread. Segmentation fault

bropines commented 1 month ago

First of all, don’t drag the list with the wheel. Secondly, the bug is related to the “quick” change of the inpainter. I think to set a limit on the speed of list changes.

dmMaze commented 1 month ago

@Samurai-Kyo It doesn't cause segmentation fault on my device, but it did lead to another problem: several inpainter threads running in the background forever even if qthread.terminate() is called. I don't know the source of this bug yet, maybe I'll put some restrictions on the user end.

bropines commented 1 month ago

@Samurai-Kyo It doesn't cause segmentation fault on my device, but it did lead to another problem: several inpainter threads running in the background forever even if qthread.terminate() is called. I don't know the source of this bug yet, maybe I'll put some restrictions on the user end.

I had the bug repeated, but instead of the usual work, the program just crashed without an error. only with warning