Skip to content

Commit f48de70

Browse files
committed
Merge pull request LykosAI#954 from ionite34/fix-crashes
Fix crashes (cherry picked from commit 74842d7) # Conflicts: # CHANGELOG.md
1 parent 183b655 commit f48de70

File tree

6 files changed

+44
-7
lines changed

6 files changed

+44
-7
lines changed

Avalonia.Gif/WebpInstance.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,18 @@ public WebpInstance(Stream currentStream)
5454

5555
var pixSize = new PixelSize(_codec.Info.Width, _codec.Info.Height);
5656

57-
_targetBitmap = new WriteableBitmap(pixSize, new Vector(96, 96), PixelFormat.Bgra8888, AlphaFormat.Opaque);
57+
_targetBitmap = new WriteableBitmap(
58+
pixSize,
59+
new Vector(96, 96),
60+
PixelFormat.Bgra8888,
61+
AlphaFormat.Opaque
62+
);
5863
GifPixelSize = pixSize;
5964

6065
_totalTime = TimeSpan.Zero;
6166

6267
_frameTimes = _codec
63-
.FrameInfo
64-
.Select(frame =>
68+
.FrameInfo.Select(frame =>
6569
{
6670
_totalTime = _totalTime.Add(TimeSpan.FromMilliseconds(frame.Duration));
6771
return _totalTime;

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,48 @@ All notable changes to Stability Matrix will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

8+
<<<<<<< HEAD
9+
=======
10+
## v2.14.0-dev.2
11+
### Fixed
12+
- Fixed crash when dragging & dropping images in Inference (hopefully)
13+
14+
## v2.14.0-dev.1
15+
### Added
16+
- Added Rescale CFG addon to Inference
17+
- Added Swap Dimensions button between the width/height input in Inference
18+
- Added Ctrl+Tab/Ctrl+Shift+Tab shortcuts for navigating between Inference tabs
19+
- Added OpenModelDB tab to the Model Browser
20+
### Changed
21+
- Improved the quality of Inference inpainting by upgrading the workflow behind the scenes. The workflow remains the same for you — just better results!
22+
- Redesigned the Checkpoint Manager Filter flyout to include more options and improve the layout
23+
- "Clear All" button will now remain at the top of the Downloads list regardless of scroll position - thanks to @Genteure!
24+
- Improved image metadata parsing - thanks to @Genteure!
25+
### Fixed
26+
- Fixed Inference image selector card buttons taking up the whole height of the card
27+
- Fixed Inference mask editor failing to paint to the right-most edge on large images
28+
- Fixed Inference mask editor not showing the entire image in certain circumstances
29+
- Fixed an issue where certain sampler/scheduler combos would not get saved in image metadata - thanks to @yansigit!
30+
- Fixed [#1078](https://github.com/LykosAI/StabilityMatrix/issues/1078) - "Call from invalid thread" error after one-click install finishes
31+
- Fixed [#1080](https://github.com/LykosAI/StabilityMatrix/issues/1080) - Some models not displayed in Checkpoint Manager
32+
### Supporters
33+
#### Visionaries
34+
- Many thanks to our incredible Visionary-tier Patreon supporters, **Waterclouds** and **TheTekknician**! Your support helps us continue to improve Stability Matrix!
35+
36+
>>>>>>> 74842d71 (Merge pull request #954 from ionite34/fix-crashes)
837
## v2.13.1
938
### Changed
1039
- Redesigned the Checkpoint Manager Filter flyout to include more options and improve the layout
1140
### Fixed
1241
- Fixed [#1078](https://github.com/LykosAI/StabilityMatrix/issues/1078) - "Call from invalid thread" error after one-click install finishes
1342
- Fixed [#1080](https://github.com/LykosAI/StabilityMatrix/issues/1080) - Some models not displayed in Checkpoint Manager
1443
- Fixed Inference image selector card buttons taking up the whole height of the card
44+
<<<<<<< HEAD
1545
- Fixed Inference mask editor failing to paint to the right-most edge on large images
1646
- Fixed Inference mask editor not showing the entire image in certain circumstances
47+
=======
48+
- Fixed crash when dragging & dropping images in Inference (hopefully)
49+
>>>>>>> 74842d71 (Merge pull request #954 from ionite34/fix-crashes)
1750
1851
## v2.13.0
1952
### Added

StabilityMatrix.Avalonia/Models/ImageSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ protected virtual void Dispose(bool disposing)
277277
if (!disposing)
278278
return;
279279

280-
Bitmap?.Dispose();
280+
Bitmap = null;
281281
}
282282

283283
/// <inheritdoc />

StabilityMatrix.Avalonia/ViewModels/Base/InferenceGenerationViewModelBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ await notificationService.ShowAsync(
421421

422422
// Clear progress
423423
OutputProgress.ClearProgress();
424-
ImageGalleryCardViewModel.PreviewImage?.Dispose();
424+
// ImageGalleryCardViewModel.PreviewImage?.Dispose();
425425
ImageGalleryCardViewModel.PreviewImage = null;
426426
ImageGalleryCardViewModel.IsPreviewOverlayEnabled = false;
427427

StabilityMatrix.Avalonia/ViewModels/Inference/ImageGalleryCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void SetPreviewImage(byte[] imageBytes)
8888
PreviewImage = bitmap;
8989
IsPreviewOverlayEnabled = true;
9090

91-
currentImage?.Dispose();
91+
// currentImage?.Dispose();
9292
});
9393
}
9494

StabilityMatrix.Avalonia/ViewModels/Inference/SelectImageCardViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,6 @@ private void LoadUserImage(ImageSource image)
295295

296296
ImageSource = image;
297297

298-
current?.Dispose();
298+
// current?.Dispose();
299299
}
300300
}

0 commit comments

Comments
 (0)