Checklist
- [x] The issue exists after disabling all extensions
- [x] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [x] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [x] The issue has been reported before but has not been fixed yet
What happened?
when trying to generate X/Y/Z plot at the end I get AttributeError: 'ImageDraw' object has no attribute 'multiline_textsize'
Steps to reproduce the problem
I start generation with X/Y/Z plot enabled with several checkpoints
What should have happened?
--
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
{
"Platform": "Windows-10-10.0.19045-SP0",
"Python": "3.10.6",
"Version": "v1.10.1-89-g2174ce5a",
"Commit": "2174ce5afea90ca489d222f539988dcef59f1027",
"Git status": "On branch dev\nYour branch is up to date with 'origin/dev'.\n\nChanges not staged for commit:\n (use "git add/rm ..." to update what will be committed)\n (use "git restore ..." to discard changes in working directory)\n\tdeleted: models/Stable-diffusion/Put Stable Diffusion checkpoints here.txt\n\tmodified: modules/images.py\n\tmodified: webui-user.bat\n\nUntracked files:\n (use "git add ..." to include in what will be committed)\n\tconfigs/anything_v3.yaml\n\tconfigs/v1-inference_clip_skip_2.yaml\n\tconfigs/v1-inference_clip_skip_2_fp16.yaml\n\tconfigs/v1-inference_fp16.yaml\n\tconfigs/v2-inference-v.yaml\n\tconfigs/v2-inference-v_fp32.yaml\n\tconfigs/v2-inference.yaml\n\tconfigs/v2-inference_fp32.yaml\n\tconfigs/v2-inpainting-inference.yaml\n\nno changes added to commit (use "git add" and/or "git commit -a")",
"Script path": "C:\ai_web\sd.webui\webui",
"Data path": "C:\ai_web\sd.webui\webui",
"Extensions dir": "C:\ai_web\sd.webui\webui\extensions",
"Checksum": "e650cac89c923089b0558a9bf4646232f85a6b848bc8ca6abf0d011d6fd0e96d",
"Commandline": [
"launch.py",
"--theme",
"dark",
"--autolaunch"
],
"Torch env info": {
"torch_version": "2.7.0+cu128",
"is_debug_build": "False",
"cuda_compiled_version": "12.8",
"gcc_version": null,
"clang_version": null,
"cmake_version": null,
"os": "Майкрософт Windows 10 Pro (10.0.19045 64-разрядная)",
"libc_version": "N/A",
"python_version": "3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] (64-bit runtime)",
"python_platform": "Windows-10-10.0.19045-SP0",
"is_cuda_available": "True",
"cuda_runtime_version": "12.9.86\r",
"cuda_module_loading": "LAZY",
"nvidia_driver_version": "576.80",
"nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 5060 Ti",
"cudnn_version": null,
"pip_version": "pip3",
"pip_packages": [
"numpy==1.26.4",
"onnxruntime-gpu==1.22.0",
"open-clip-torch==2.20.0",
"optree==0.16.0",
"pytorch-lightning==1.9.4",
"torch==2.7.0+cu128",
"torchdiffeq==0.2.3",
"torchmetrics==1.7.3",
"torchsde==0.2.6",
"torchvision==0.22.0+cu128"
],
"conda_packages": null,
"hip_compiled_version": "N/A",
"hip_runtime_version": "N/A",
"miopen_runtime_version": "N/A",
"caching_allocator_config": "garbage_collection_threshold:0.9,max_split_size_mb:768",
"is_xnnpack_available": "True",
"cpu_info": [
"Name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz",
"Manufacturer: GenuineIntel",
"Family: 179",
"Architecture: 9",
"ProcessorType: 3",
"DeviceID: CPU0",
"CurrentClockSpeed: 2401",
"MaxClockSpeed: 2401",
"L2CacheSize: 3584",
"L2CacheSpeed: None",
"Revision: 20225"
]
},
"Exceptions": [
{
"exception": "A tensor with NaNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding --no-half-vae commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.",
"traceback": [
[
"C:\ai_web\sd.webui\webui\modules\processing.py, line 637, decode_latent_batch",
"devices.test_for_nans(sample, "vae")"
],
[
"C:\ai_web\sd.webui\webui\modules\devices.py, line 265, test_for_nans",
"raise NansException(message)"
]
]
}
],
"CPU": {
"model": "Intel64 Family 6 Model 79 Stepping 1, GenuineIntel",
"count logical": 28,
"count physical": 14
},
"RAM": {
"total": "64GB",
"used": "25GB",
"free": "39GB"
},
"Extensions": [
{
"name": "stable-diffusion-webui-wd14-tagger",
"path": "C:\ai_web\sd.webui\webui\extensions\stable-diffusion-webui-wd14-tagger",
"commit": "e72d984bdbed832ba83e2a443238c3851b9088ae",
"branch": "master",
"remote": "https://github.com/picobyte/stable-diffusion-webui-wd14-tagger.git"
}
],
"Inactive extensions": [],
"Environment": {
"COMMANDLINE_ARGS": "--theme dark --autolaunch ",
"GRADIO_ANALYTICS_ENABLED": "False",
"XFORMERS_PACKAGE": "xformers==0.0.30.dev1005"
},
"Config": {
"ldsr_steps": 100,
"ldsr_cached": false,
"SCUNET_tile": 256,
"SCUNET_tile_overlap": 8,
"SWIN_tile": 192,
"SWIN_tile_overlap": 8,
"SWIN_torch_compile": false,
"hypertile_enable_unet": false,
"hypertile_enable_unet_secondpass": false,
"hypertile_max_depth_unet": 3,
"hypertile_max_tile_unet": 256,
"hypertile_swap_size_unet": 3,
"hypertile_enable_vae": false,
"hypertile_max_depth_vae": 3,
"hypertile_max_tile_vae": 128,
"hypertile_swap_size_vae": 3,
"sd_model_checkpoint": "NAI_oneObsessionNoob_v30NoobVpredrouwei.safetensors [9278fc3aff]",
"sd_checkpoint_hash": "9278fc3affba7a41c9a17c29795ae9cb9d5a7f601af22c2817039de5323e901f",
"outdir_samples": "H:\ai_created_my\outputs\txt2img-images",
"outdir_txt2img_samples": "H:\ai_created_my\outputs\txt2img-images",
"outdir_img2img_samples": "H:\ai_created_my\outputs\img2img-images",
"outdir_extras_samples": "H:\ai_created_my\outputs\extras-images",
"outdir_grids": "H:\ai_created_my\outputs\txt2img-grids",
"outdir_txt2img_grids": "H:\ai_created_my\outputs\txt2img-grids",
"outdir_img2img_grids": "H:\ai_created_my\outputs\img2img-grids",
"outdir_save": "H:\ai_created_my\log\images",
"outdir_init_images": "H:\ai_created_my\outputs\init-images",
"samples_save": true,
"samples_format": "png",
"samples_filename_pattern": "",
"save_images_add_number": true,
"save_images_replace_action": "Replace",
"grid_save": true,
"grid_format": "png",
"grid_extended_filename": false,
"grid_only_if_multiple": true,
"grid_prevent_empty_spots": false,
"grid_zip_filename_pattern": "",
"n_rows": -1,
"font": "",
"grid_text_active_color": "#000000",
"grid_text_inactive_color": "#999999",
"grid_background_color": "#ffffff",
"save_images_before_face_restoration": false,
"save_images_before_highres_fix": false,
"save_images_before_color_correction": false,
"save_mask": false,
"save_mask_composite": false,
"jpeg_quality": 80,
"webp_lossless": false,
"export_for_4chan": true,
"img_downscale_threshold": 4.0,
"target_side_length": 4000.0,
"img_max_size_mp": 200.0,
"use_original_name_batch": true,
"use_upscaler_name_as_suffix": false,
"save_selected_only": true,
"save_write_log_csv": true,
"save_init_img": false,
"temp_dir": "",
"clean_temp_dir_at_start": false,
"save_incomplete_images": false,
"notification_audio": true,
"notification_volume": 100,
"save_to_dirs": true,
"grid_save_to_dirs": true,
"use_save_to_dirs_for_ui": false,
"directories_filename_pattern": "[date]",
"directories_max_prompt_words": 8,
"auto_backcompat": true,
"use_old_emphasis_implementation": false,
"use_old_karras_scheduler_sigmas": false,
"no_dpmpp_sde_batch_determinism": false,
"use_old_hires_fix_width_height": false,
"hires_fix_use_firstpass_conds": false,
"use_old_scheduling": false,
"use_downcasted_alpha_bar": false,
"refiner_switch_by_sample_steps": false,
"lora_functional": false,
"extra_networks_show_hidden_directories": true,
"extra_networks_dir_button_function": false,
"extra_networks_hidden_models": "When searched",
"extra_networks_default_multiplier": 1,
"extra_networks_card_width": 0.0,
"extra_networks_card_height": 0.0,
"extra_networks_card_text_scale": 1,
"extra_networks_card_show_desc": true,
"extra_networks_card_description_is_html": false,
"extra_networks_card_order_field": "Path",
"extra_networks_card_order": "Ascending",
"extra_networks_tree_view_style": "Dirs",
"extra_networks_tree_view_default_enabled": true,
"extra_networks_tree_view_default_width": 180.0,
"extra_networks_add_text_separator": " ",
"ui_extra_networks_tab_reorder": "",
"textual_inversion_print_at_load": false,
"textual_inversion_add_hashes_to_infotext": true,
"sd_hypernetwork": "None",
"textual_inversion_image_embedding_data_cache": false,
"sd_lora": "None",
"lora_preferred_name": "Alias from file",
"lora_add_hashes_to_infotext": true,
"lora_bundled_ti_to_infotext": true,
"lora_show_all": false,
"lora_hide_unknown_for_versions": [],
"lora_in_memory_limit": 0,
"lora_not_found_warning_console": false,
"lora_not_found_gradio_warning": false,
"cross_attention_optimization": "sub-quadratic",
"s_min_uncond": 0,
"s_min_uncond_all": false,
"token_merging_ratio": 0,
"token_merging_ratio_img2img": 0,
"token_merging_ratio_hr": 0,
"pad_cond_uncond": false,
"pad_cond_uncond_v0": false,
"persistent_cond_cache": true,
"batch_cond_uncond": true,
"fp8_storage": "Disable",
"cache_fp16_weight": false,
"hide_samplers": [],
"eta_ddim": 0,
"eta_ancestral": 1,
"ddim_discretize": "uniform",
"s_churn": 0,
"s_tmin": 0,
"s_tmax": 0,
"s_noise": 1,
"sigma_min": 0.0,
"sigma_max": 0.0,
"rho": 0.0,
"eta_noise_seed_delta": 31337,
"always_discard_next_to_last_sigma": false,
"sgm_noise_multiplier": false,
"uni_pc_variant": "bh1",
"uni_pc_skip_type": "time_uniform",
"uni_pc_order": 3,
"uni_pc_lower_order_final": true,
"sd_noise_schedule": "Default",
"skip_early_cond": 0,
"beta_dist_alpha": 0.6,
"beta_dist_beta": 0.6,
"sd_checkpoints_limit": 1,
"sd_checkpoints_keep_in_cpu": true,
"sd_checkpoint_cache": 0,
"sd_unet": "Automatic",
"enable_quantization": false,
"emphasis": "Original",
"enable_batch_seeds": true,
"comma_padding_backtrack": 20,
"sdxl_clip_l_skip": false,
"CLIP_stop_at_last_layers": 2,
"upcast_attn": false,
"randn_source": "GPU",
"tiling": false,
"hires_fix_refiner_pass": "second pass",
"enable_prompt_comments": true,
"sd3_enable_t5": false,
"sdxl_crop_top": 0.0,
"sdxl_crop_left": 0.0,
"sdxl_refiner_low_aesthetic_score": 2.5,
"sdxl_refiner_high_aesthetic_score": 6.0,
"sd_vae_checkpoint_cache": 0,
"sd_vae": "Automatic",
"sd_vae_overrides_per_model_preferences": true,
"auto_vae_precision_bfloat16": false,
"auto_vae_precision": true,
"sd_vae_encode_method": "Full",
"sd_vae_decode_method": "Full",
"inpainting_mask_weight": 1,
"initial_noise_multiplier": 1,
"img2img_extra_noise": 0,
"img2img_color_correction": false,
"img2img_fix_steps": false,
"img2img_background_color": "#ffffff",
"img2img_editor_height": 720,
"img2img_sketch_default_brush_color": "#ffffff",
"img2img_inpaint_mask_brush_color": "#ffffff",
"img2img_inpaint_sketch_default_brush_color": "#ffffff",
"return_mask": false,
"return_mask_composite": false,
"img2img_batch_show_results_limit": 32,
"overlay_inpaint": true,
"return_grid": true,
"do_not_show_images": false,
"js_modal_lightbox": true,
"js_modal_lightbox_initially_zoomed": true,
"js_modal_lightbox_gamepad": false,
"js_modal_lightbox_gamepad_repeat": 250.0,
"sd_webui_modal_lightbox_icon_opacity": 1,
"sd_webui_modal_lightbox_toolbar_opacity": 0.9,
"gallery_height": "",
"open_dir_button_choice": "Subdirectory",
"enable_pnginfo": true,
"save_txt": false,
"add_model_name_to_info": true,
"add_model_hash_to_info": true,
"add_vae_name_to_info": true,
"add_vae_hash_to_info": true,
"add_user_name_to_info": false,
"add_version_to_infotext": true,
"disable_weights_auto_swap": true,
"infotext_skip_pasting": [],
"infotext_styles": "Apply if any",
"show_progressbar": true,
"live_previews_enable": true,
"live_previews_image_format": "webp",
"show_progress_grid": false,
"show_progress_every_n_steps": 4,
"show_progress_type": "TAESD",
"live_preview_allow_lowvram_full": false,
"live_preview_content": "Prompt",
"live_preview_refresh_period": 1000.0,
"live_preview_fast_interrupt": false,
"js_live_preview_in_modal_lightbox": true,
"prevent_screen_sleep_during_generation": true,
"keyedit_precision_attention": 0.1,
"keyedit_precision_extra": 0.05,
"keyedit_delimiters": ".,\/!?%^*;:{}=`~() ",
"keyedit_delimiters_whitespace": [
"Tab",
"Carriage Return",
"Line Feed"
],
"keyedit_move": true,
"disable_token_counters": false,
"include_styles_into_token_counters": true,
"extra_options_txt2img": [],
"extra_options_img2img": [],
"extra_options_cols": 1,
"extra_options_accordion": false,
"compact_prompt_box": false,
"samplers_in_dropdown": true,
"dimensions_and_batch_together": true,
"sd_checkpoint_dropdown_use_short": false,
"hires_fix_show_sampler": false,
"hires_fix_show_prompts": false,
"txt2img_settings_accordion": false,
"img2img_settings_accordion": false,
"interrupt_after_current": true,
"localization": "None",
"quicksettings_list": [
"sd_model_checkpoint",
"CLIP_stop_at_last_layers",
"sd_vae",
"face_restoration",
"interrogate_deepbooru_score_threshold"
],
"ui_tab_order": [],
"hidden_tabs": [],
"ui_reorder_list": [],
"gradio_theme": "Default",
"gradio_themes_cache": true,
"show_progress_in_title": true,
"send_seed": true,
"send_size": true,
"enable_reloading_ui_scripts": false,
"api_enable_requests": true,
"api_forbid_local_requests": true,
"api_useragent": "",
"prioritized_callbacks_app_started": [],
"prioritized_callbacks_model_loaded": [],
"prioritized_callbacks_ui_settings": [],
"prioritized_callbacks_infotext_pasted": [],
"prioritized_callbacks_script_unloaded": [],
"prioritized_callbacks_before_ui": [],
"prioritized_callbacks_list_optimizers": [],
"prioritized_callbacks_before_token_counter": [],
"prioritized_callbacks_script_before_process": [],
"prioritized_callbacks_script_process": [],
"prioritized_callbacks_script_post_sample": [],
"prioritized_callbacks_script_on_mask_blend": [],
"prioritized_callbacks_script_postprocess_maskoverlay": [],
"profiling_enable": false,
"profiling_activities": [
"CPU"
],
"profiling_record_shapes": true,
"profiling_profile_memory": true,
"profiling_with_stack": true,
"profiling_filename": "trace.json",
"auto_launch_browser": "Local",
"enable_console_prompts": false,
"show_warnings": false,
"show_gradio_deprecation_warnings": true,
"memmon_poll_rate": 8,
"samples_log_stdout": false,
"multiple_tqdm": true,
"enable_upscale_progressbar": true,
"print_hypernet_extra": false,
"list_hidden_files": true,
"disable_mmap_load_safetensors": false,
"hide_ldm_prints": true,
"dump_stacks_on_signal": false,
"concurrent_git_fetch_limit": 16,
"face_restoration": false,
"face_restoration_model": "CodeFormer",
"code_former_weight": 0.5,
"face_restoration_unload": false,
"postprocessing_enable_in_main_ui": [],
"postprocessing_disable_in_extras": [],
"postprocessing_operation_order": [],
"upscaling_max_images_in_cache": 5,
"postprocessing_existing_caption_action": "Ignore",
"ESRGAN_tile": 192,
"ESRGAN_tile_overlap": 8,
"realesrgan_enabled_models": [
"R-ESRGAN 4x+",
"R-ESRGAN 4x+ Anime6B"
],
"dat_enabled_models": [
"DAT x2",
"DAT x3",
"DAT x4"
],
"DAT_tile": 192,
"DAT_tile_overlap": 8,
"set_scale_by_when_changing_upscaler": false,
"unload_models_when_training": false,
"pin_memory": false,
"save_optimizer_state": false,
"save_training_settings_to_txt": true,
"dataset_filename_word_regex": "",
"dataset_filename_join_string": " ",
"training_image_repeats_per_epoch": 1,
"training_write_csv_every": 500.0,
"training_xattention_optimizations": false,
"training_enable_tensorboard": false,
"training_tensorboard_save_images": false,
"training_tensorboard_flush_every": 120.0,
"canvas_hotkey_zoom": "Alt",
"canvas_hotkey_adjust": "Ctrl",
"canvas_hotkey_shrink_brush": "Q",
"canvas_hotkey_grow_brush": "W",
"canvas_hotkey_move": "F",
"canvas_hotkey_fullscreen": "S",
"canvas_hotkey_reset": "R",
"canvas_hotkey_overlap": "O",
"canvas_show_tooltip": true,
"canvas_auto_expand": true,
"canvas_blur_prompt": false,
"canvas_disabled_functions": [
"Overlap"
],
"interrogate_keep_models_in_memory": false,
"interrogate_return_ranks": false,
"interrogate_clip_num_beams": 1,
"interrogate_clip_min_length": 24,
"interrogate_clip_max_length": 48,
"interrogate_clip_dict_limit": 1500.0,
"interrogate_clip_skip_categories": [],
"interrogate_deepbooru_score_threshold": 0.19,
"deepbooru_sort_alpha": true,
"deepbooru_use_spaces": true,
"deepbooru_escape": true,
"deepbooru_filter_tags": "censored, yaoi, futa, mosaic censoring, censoring, pubic hair, ugly, x-ray ,furry,, 2boys, 3boys, ugly man, bar censor, animal ears, fat man, food,",
"upscaler_for_img2img": "R-ESRGAN 4x+",
"disabled_extensions": [],
"disable_all_extensions": "none",
"tagger_out_filename_fmt": "[name].[output_extension]",
"tagger_count_threshold": 100.0,
"tagger_batch_recursive": true,
"tagger_auto_serde_json": true,
"tagger_store_images": false,
"tagger_weighted_tags_files": false,
"tagger_verbose": false,
"tagger_repl_us": true,
"tagger_repl_us_excl": "0_0, (o)(o), ++, +-, .., , <|><|>, ==, ><, 3_3, 6_9, >o, @@, ^^, o_o, u_u, x_x, ||, ||_||",
"tagger_escape": false,
"tagger_batch_size": 1024,
"tagger_hf_cache_dir": "C:\ai_web\sd.webui\webui\models\interrogators",
"prioritized_callbacks_ui_tabs": []
},
"Startup": {
"total": 1.3822298049926758,
"records": {
"app reload callback": 0.0,
"scripts unloaded callback": 0.0,
"set samplers": 0.0,
"list extensions": 0.003998756408691406,
"restore config state file": 0.0,
"list SD models": 0.015995025634765625,
"list localizations": 0.0019996166229248047,
"load scripts/custom_code.py": 0.006997108459472656,
"load scripts/img2imgalt.py": 0.0009996891021728516,
"load scripts/loopback.py": 0.0,
"load scripts/outpainting_mk_2.py": 0.0009999275207519531,
"load scripts/poor_mans_outpainting.py": 0.0,
"load scripts/postprocessing_codeformer.py": 0.0,
"load scripts/postprocessing_gfpgan.py": 0.0009996891021728516,
"load scripts/postprocessing_upscale.py": 0.0,
"load scripts/prompt_matrix.py": 0.0010001659393310547,
"load scripts/prompts_from_file.py": 0.0,
"load scripts/sd_upscale.py": 0.0009989738464355469,
"load scripts/xyz_grid.py": 0.00099945068359375,
"load scripts/ldsr_model.py": 0.06201457977294922,
"load scripts/lora_script.py": 0.23192191123962402,
"load scripts/scunet_model.py": 0.034992218017578125,
"load scripts/swinir_model.py": 0.03499341011047363,
"load scripts/hotkey_config.py": 0.0,
"load scripts/extra_options_section.py": 0.0009694099426269531,
"load scripts/hypertile_script.py": 0.07700014114379883,
"load scripts/postprocessing_autosized_crop.py": 0.0010044574737548828,
"load scripts/postprocessing_caption.py": 0.0,
"load scripts/postprocessing_create_flipped_copies.py": 0.0009696483612060547,
"load scripts/postprocessing_focal_crop.py": 0.0,
"load scripts/postprocessing_split_oversized.py": 0.001026153564453125,
"load scripts/soft_inpainting.py": 0.000997781753540039,
"load scripts/tagger.py": 0.11196684837341309,
"load scripts/comments.py": 0.038991689682006836,
"load scripts/refiner.py": 0.0010004043579101562,
"load scripts/sampler.py": 0.0,
"load scripts/seed.py": 0.000997304916381836,
"load scripts": 0.6118409633636475,
"load upscalers": 0.002003192901611328,
"refresh VAE": 0.001993894577026367,
"refresh textual inversion templates": 0.0010035037994384766,
"scripts list_optimizers": 0.0019981861114501953,
"scripts list_unets": 0.0,
"reload hypernetworks": 0.0009989738464355469,
"initialize extra networks": 0.0040018558502197266,
"scripts before_ui_callback": 0.0019953250885009766,
"create ui": 0.5678255558013916,
"gradio launch": 0.15555405616760254,
"add APIs": 0.0070226192474365234,
"app_started_callback/lora_script.py": 0.0,
"app_started_callback/tagger.py": 0.003998279571533203,
"app_started_callback": 0.003998279571533203
}
},
"Packages": [
"absl-py==2.3.1",
"accelerate==0.21.0",
"aenum==3.1.16",
"aiofiles==23.2.1",
"aiohappyeyeballs==2.6.1",
"aiohttp==3.12.13",
"aiosignal==1.3.2",
"altair==5.5.0",
"antlr4-python3-runtime==4.9.3",
"anyio==3.7.1",
"astunparse==1.6.3",
"async-timeout==5.0.1",
"attrs==25.3.0",
"blendmodes==2022",
"certifi==2025.6.15",
"charset-normalizer==3.4.2",
"clean-fid==0.1.35",
"click==8.2.1",
"clip @ https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip#sha256=b5842c25da441d6c581b53a5c60e0c2127ebafe0f746f8e15561a006c6c3be6a",
"colorama==0.4.6",
"coloredlogs==15.0.1",
"contourpy==1.3.2",
"cycler==0.12.1",
"deepdanbooru==1.0.4",
"deprecation==2.1.0",
"diskcache==5.6.3",
"einops==0.4.1",
"exceptiongroup==1.3.0",
"facexlib==0.3.0",
"fastapi==0.94.0",
"ffmpy==0.6.0",
"filelock==3.18.0",
"filterpy==1.4.5",
"flatbuffers==25.2.10",
"fonttools==4.58.4",
"frozenlist==1.7.0",
"fsspec==2025.5.1",
"ftfy==6.3.1",
"gast==0.6.0",
"gitdb==4.0.12",
"GitPython==3.1.32",
"google-pasta==0.2.0",
"gradio==3.41.2",
"gradio_client==0.5.0",
"grpcio==1.73.1",
"h11==0.12.0",
"h5py==3.14.0",
"httpcore==0.15.0",
"httpx==0.24.1",
"huggingface-hub==0.33.0",
"humanfriendly==10.0",
"idna==3.10",
"imageio==2.37.0",
"importlib_resources==6.5.2",
"inflection==0.5.1",
"Jinja2==3.1.6",
"jsonmerge==1.8.0",
"jsonschema==4.24.0",
"jsonschema-specifications==2025.4.1",
"keras==3.10.0",
"kiwisolver==1.4.8",
"kornia==0.6.7",
"lark==1.1.2",
"lazy_loader==0.4",
"libclang==18.1.1",
"lightning-utilities==0.14.3",
"llvmlite==0.44.0",
"Markdown==3.8.2",
"markdown-it-py==3.0.0",
"MarkupSafe==2.1.5",
"matplotlib==3.10.3",
"mdurl==0.1.2",
"ml_dtypes==0.5.1",
"mpmath==1.3.0",
"multidict==6.5.0",
"namex==0.1.0",
"narwhals==1.43.1",
"networkx==3.4.2",
"numba==0.61.2",
"numpy==1.26.4",
"omegaconf==2.2.3",
"onnxruntime-gpu==1.22.0",
"open-clip-torch==2.20.0",
"opencv-contrib-python==4.11.0.86",
"opencv-python==4.11.0.86",
"opencv-python-headless==4.11.0.86",
"opt_einsum==3.4.0",
"optree==0.16.0",
"orjson==3.10.18",
"packaging==25.0",
"pandas==2.3.0",
"piexif==1.1.3",
"pillow==10.4.0",
"pillow-avif-plugin==1.4.3",
"pip==25.1.1",
"propcache==0.3.2",
"protobuf==5.29.5",
"psutil==5.9.5",
"pydantic==1.10.22",
"pydub==0.25.1",
"Pygments==2.19.2",
"pyparsing==3.2.3",
"pyreadline3==3.5.4",
"python-dateutil==2.9.0.post0",
"python-multipart==0.0.20",
"pytorch-lightning==1.9.4",
"pytz==2025.2",
"PyWavelets==1.8.0",
"PyYAML==6.0.2",
"referencing==0.36.2",
"regex==2024.11.6",
"requests==2.32.4",
"resize-right==0.0.2",
"rich==14.0.0",
"rpds-py==0.25.1",
"safetensors==0.4.5",
"scikit-image==0.25.2",
"scipy==1.15.3",
"semantic-version==2.10.0",
"sentencepiece==0.2.0",
"setuptools==69.5.1",
"six==1.17.0",
"smmap==5.0.2",
"sniffio==1.3.1",
"spandrel==0.3.4",
"spandrel_extra_arches==0.1.1",
"starlette==0.26.1",
"sympy==1.14.0",
"tensorboard==2.19.0",
"tensorboard-data-server==0.7.2",
"tensorflow==2.19.0",
"tensorflow-io-gcs-filesystem==0.31.0",
"termcolor==3.1.0",
"tifffile==2025.5.10",
"timm==1.0.15",
"tokenizers==0.13.3",
"tomesd==0.1.3",
"torch==2.7.0+cu128",
"torchdiffeq==0.2.3",
"torchmetrics==1.7.3",
"torchsde==0.2.6",
"torchvision==0.22.0+cu128",
"tqdm==4.67.1",
"trampoline==0.1.2",
"transformers==4.30.2",
"typing_extensions==4.14.0",
"tzdata==2025.2",
"urllib3==2.5.0",
"uvicorn==0.34.3",
"wcwidth==0.2.13",
"websockets==11.0.3",
"Werkzeug==3.1.3",
"wheel==0.45.1",
"wrapt==1.17.2",
"yarl==1.20.1"
]
}
Console logs
*** Error completing request
*** Arguments: ('task(ja4jazzpwfefl4b)', <gradio.routes.Request object at 0x000001D11E24D810>,*//*, [], 1, 1, 7, 1024, 1384, False, 0.7, 2, 'Latent', 0, 0, 0, 'Use same checkpoint', 'Use same sampler', 'Use same scheduler', '', '', [], 3, 30, 'Euler a', 'Automatic', False, '', 0.8, 2144633961, False, -1, 0, 0, 0, False, False, 'positive', 'comma', 0, False, False, 'start', '', 0, '', [], 11, '', ['NAI_novaAnimeXL_ilV5b.safetensors [bb9b24719f]', 'NAI_oneObsessionNoob_v30NoobVpredrouwei.safetensors [9278fc3aff]', 'NoobAI-XL-v1.1.safetensors [6681e8e4b1]', 'nova3DCGXL_illustriousV10.safetensors [6316d41b68]', 'PONY_animusmixV10_v10.safetensors [a2ba3c02a1]', 'PONY_SDXL_autismmixSDXL_autismmixPony.safetensors [821aa5537f]', 'waiNsfwBranchRouwei_ePred1_0.7e.safetensors [dd25aa81fe]', 'waiNSFWIllustrious_v140.safetensors [bdb59bac77]'], 0, '', [], True, False, False, False, False, False, False, 0, False, True) {}
Traceback (most recent call last):
File "C:\ai_web\sd.webui\webui\modules\call_queue.py", line 74, in f
res = list(func(*args, **kwargs))
File "C:\ai_web\sd.webui\webui\modules\call_queue.py", line 53, in f
res = func(*args, **kwargs)
File "C:\ai_web\sd.webui\webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "C:\ai_web\sd.webui\webui\modules\txt2img.py", line 106, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *p.script_args)
File "C:\ai_web\sd.webui\webui\modules\scripts.py", line 780, in run
processed = script.run(p, *script_args)
File "C:\ai_web\sd.webui\webui\scripts\xyz_grid.py", line 773, in run
processed = draw_xyz_grid(
File "C:\ai_web\sd.webui\webui\scripts\xyz_grid.py", line 382, in draw_xyz_grid
grid = images.draw_grid_annotations(grid, grid_max_w, grid_max_h, hor_texts, ver_texts, margin_size)
File "C:\ai_web\sd.webui\webui\modules\images.py", line 228, in draw_grid_annotations
draw_texts(d, x, y, hor_texts[col], fnt, fontsize)
File "C:\ai_web\sd.webui\webui\modules\images.py", line 171, in draw_texts
while drawing.multiline_textsize(line.text, font=fnt)[0] > line.allowed_width and fontsize > 0:
AttributeError: 'ImageDraw' object has no attribute 'multiline_textsize'
Additional information
we need to replace multiline_textsize with the new textbbox method.
Steps:
Open the file:
\stable-diffusion-webui\modules\images.py
Find the line (around line 171):
while drawing.multiline_textsize(line.text, font=fnt)[0] > line.allowed_width and fontsize > 0:
Replace it with:
while drawing.textbbox((0, 0), line.text, font=fnt)[2] > line.allowed_width and fontsize > 0:
Save the file and restart WebUI.