zed/crates/gpui/src
Conrad Irwin 391a61cdc2
Play guess who's to blame (#4078)
We're occasionally seeing a crash in MetalRenderer::draw.

Looking at the backtrace, it seems almost certainly to be happening in
the call to `ptr::copy_nonoverlapping` on line 604 (see `#Don't Panic!`
channel notes)

As we already have added bounds checking to the destination, it seems
most
likely (however improbable) that somehow we're getting an invalid Ptr
and
length from the SmallVec.

To try and make progress on this, let's try a Vec for a bit lest there
is a subtle issue in SmallVec (though I couldn't spot one).


Release Notes:

- (maybe) Fixes SEGFAULT in MetalRenderer::draw
2024-01-16 16:10:36 -07:00
..
app Merge remote-tracking branch 'origin/main' into cache 2024-01-10 22:58:52 +01:00
elements Preserve tooltips requested by cached views 2024-01-15 19:19:27 +01:00
keymap Reverse context arrays in child predicate test 2024-01-10 19:54:39 -08:00
platform Play guess who's to blame (#4078) 2024-01-16 16:10:36 -07:00
text_system Merge remote-tracking branch 'origin/main' into cache 2024-01-12 14:31:13 +01:00
action.rs Add remaining tests 2024-01-10 19:39:43 -08:00
app.rs Notify global observers when removing a global 2024-01-15 17:02:20 -08:00
arena.rs Ensure ArenaRef pointers are aligned to their contained type 2024-01-10 10:36:08 -08:00
assets.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
color.rs Remove some comments 2024-01-12 20:10:40 -08:00
element.rs Clean up references in doc comments (#3983) 2024-01-09 14:48:48 -05:00
executor.rs Clean up references in doc comments (#3983) 2024-01-09 14:48:48 -05:00
geometry.rs Start on caching views 2024-01-08 19:07:20 +01:00
gpui.rs gpui: Add SharedUrl type (#3975) 2024-01-09 10:55:49 -05:00
image_cache.rs gpui: Add SharedUrl type (#3975) 2024-01-09 10:55:49 -05:00
input.rs Clean up references in doc comments (#3983) 2024-01-09 14:48:48 -05:00
interactive.rs Take into account multiple scroll deltas within a single frame 2024-01-09 14:32:43 -05:00
key_dispatch.rs Preserve tooltips requested by cached views 2024-01-15 19:19:27 +01:00
platform.rs Rename all_font_families to all_font_names 2024-01-16 20:32:21 +01:00
prelude.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
scene.rs Merge remote-tracking branch 'origin/main' into cache 2024-01-15 11:37:46 +01:00
shared_string.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
shared_url.rs gpui: Add SharedUrl type (#3975) 2024-01-09 10:55:49 -05:00
style.rs Merge remote-tracking branch 'origin/main' into cache 2024-01-15 11:37:46 +01:00
styled.rs Make chat prettier (to my eyes at least) 2024-01-13 21:37:13 -07:00
subscription.rs Clean up references in doc comments (#3983) 2024-01-09 14:48:48 -05:00
svg_renderer.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
taffy.rs Revert "Use taffy to retrieve the parent for a given layout node" 2024-01-16 10:44:24 -05:00
test.rs Resolve more todos 2024-01-09 15:08:05 -08:00
text_system.rs Rename all_font_families to all_font_names 2024-01-16 20:32:21 +01:00
util.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
view.rs Remove some comments 2024-01-12 20:10:40 -08:00
window.rs Iterate from leaf to root when marking views dirty in notify 2024-01-15 16:49:06 -08:00