View Issue Details

IDProjectCategoryView StatusLast Update
0001607NoesisGUIUnity3Dpublic2019-12-30 12:31
ReporternokolaAssigned Tosfernandez 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.2.5 
Target Version2.2.6Fixed in Version2.2.6 
Summary0001607: ArgumentException when assigning Image.Source = new TextureSource(texture) more than once
Description[Exception] ArgumentException: An item with the same key has already been added. Key: 553260848
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert() <7ba07f088431485bb722f3b3373e87ee>:0

System.Collections.Generic.Dictionary`2[TKey,TValue].Add() <7ba07f088431485bb722f3b3373e87ee>:0

Texture.WrapTexture() Assets/NoesisGUI/Plugins/NoesisTexture.cs:21
19: Noesis.Texture tex = new Noesis.Texture(texturePtr, true);
-->21: Textures.Add(texturePtr.ToInt64(), texture); *************************************** ISSUE HERE
23: return tex;

Noesis.TextureSource..ctor() Assets/NoesisGUI/Plugins/NoesisTextureSource.cs:12
10: }
-->12: public TextureSource(UnityEngine.Texture2D texture): this(Texture.WrapTexture(texture,
13: EnsureNativePointer(texture), texture.width, texture.height, texture.mipmapCount))
14: {

ReverseSelectControl.SetEffectImage() Assets/XAMLs/FantasiaPhone/UnityShared/ReverseSelectControl.xaml.cs:261
259: _effectThumbnail.Release();
260: _effectThumbnail = CreateThumbnailFromBitmap(effectFullSize, _origThumbnail.Width, _origThumbnail.Height);
-->261: img100.Source = new TextureSource(_effectThumbnail.Bitmap);
263: UpdateViewExceptReverseMask();

EffectPage.UpdateMaskControlEffectIfNeeded() Assets/XAMLs/FantasiaPhone/UnityShared/EffectPage.xaml.cs:2410
2408: if (_isShowingActions)
2409: {
-->2410: _maskControl.SetEffectImage(_updated);
2411: }
2412: }

EffectPage+<WorkerCoroutine>d__32.MoveNext() Assets/XAMLs/FantasiaPhone/UnityShared/EffectPage.xaml.cs:436
434: {
435: tipControl.HideTip();
-->436: UpdateMaskControlEffectIfNeeded();
437: progress.Visibility = Visibility.Collapsed;
438: imageFrame.Display.HideProgress();

SetupCoroutine.InvokeMoveNext() C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17
Steps To Reproduce1. Create <Image Name="img100" .../> in XAML and assign texture source in code more than once:
img100.Source = new TextureSource(_effectThumbnail.Bitmap);

Expected: all OK
Actual: exception above
TagsNo tags attached.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-12-27 03:12 nokola New Issue
2019-12-30 10:10 sfernandez Assigned To => sfernandez
2019-12-30 10:10 sfernandez Status new => assigned
2019-12-30 10:10 sfernandez Target Version => 2.2.6
2019-12-30 12:31 sfernandez Status assigned => resolved
2019-12-30 12:31 sfernandez Resolution open => fixed
2019-12-30 12:31 sfernandez Fixed in Version => 2.2.6