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

Nebula: send_rsc causes IndexOutOfRangeException #1748

Open
out-of-phaze opened this issue Apr 5, 2024 · 0 comments
Open

Nebula: send_rsc causes IndexOutOfRangeException #1748

out-of-phaze opened this issue Apr 5, 2024 · 0 comments
Labels
Runtime Involves the OpenDream server/runtime

Comments

@out-of-phaze
Copy link
Contributor

[15:00:00] Runtime in code/modules/client/preference_setup/background/01_species.dm,62: Index was outside the bounds of the array.
  Exception occurred: Index was outside the bounds of the array.
  =DM StackTrace=
   /datum/category_item/player_setup_item/background/species/content code/modules/client/preference_setup/background/01_species.dm:62
   /datum/category_group/player_setup_category/background_preferences/content code/modules/client/preference_setup/preference_setup.dm:21
   /datum/category_collection/player_setup_collection/content code/modules/client/preference_setup/preference_setup.dm:103
   /datum/preferences/get_content code/modules/client/preferences.dm:222
   /datum/preferences/open_setup_window code/modules/client/preferences.dm:232
   /mob/new_player/Topic code/modules/mob/new_player/new_player.dm:96
   /client/Topic Types/Client.dm:69
   /client/Topic code/modules/client/client_procs.dm:108

=C# StackTrace=
  System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at OpenDreamRuntime.Objects.DreamIconOperationBlendImage.<>c__DisplayClass4_0.<ApplyToFrame>b__0(PixelAccessor`1 accessor) in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\Objects\DreamIcon.cs:line 415
   at SixLabors.ImageSharp.Image`1.ProcessPixelRows(PixelAccessorAction`1 processPixels)
   at OpenDreamRuntime.Objects.DreamIcon.DrawFrames(Rgba32[] pixels, Int32 firstFrameIndex, List`1 frames, AtomDirection dir) in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\Objects\DreamIcon.cs:line 259
   at OpenDreamRuntime.Objects.DreamIcon.GenerateDMI() in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\Objects\DreamIcon.cs:line 117
   at OpenDreamRuntime.Resources.DreamResourceManager.TryLoadIcon(DreamValue value, IconResource& icon) in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\Resources\DreamResourceManager.cs:line 101
   at OpenDreamRuntime.Procs.DMOpcodeHandlers.BrowseResource(DMProcState state) in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\Procs\DMOpcodeHandlers.cs:line 2263
   at OpenDreamRuntime.DreamThread.Resume() in C:\Users\User\phaze\OpenDream\OpenDreamRuntime\DreamThread.cs:line 223

The relevant DM code:

	var/icon/use_preview_icon = current_species.get_preview_icon()
	if(use_preview_icon)
		send_rsc(user, use_preview_icon, current_species.preview_icon_path)
@wixoaGit wixoaGit added the Runtime Involves the OpenDream server/runtime label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Runtime Involves the OpenDream server/runtime
Projects
None yet
Development

No branches or pull requests

2 participants