Skip to content

Instantly share code, notes, and snippets.

--------- beginning of kernel
01-16 16:25:22.486 152 152 I logd : logdr: UID=0 GID=0 PID=26657 b tail=1 logMask=99 pid=0 start=0ns deadline=0ns
--------- beginning of main
02-27 08:37:27.237 1697 2500 I AiAiEcho: Settings changed for uri: content://settings/secure/immersive_mode_confirmations
02-27 08:37:27.239 1697 2113 I AiAiEcho: Predicting[0]:
02-27 08:37:27.239 1697 2113 I AiAiEcho: EchoTargets:
02-27 08:37:27.239 1697 2113 I AiAiEcho: Filtered by AiAi flag check:
02-27 08:37:27.239 1697 2113 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata:
02-27 08:37:27.240 1697 2113 I AiAiEcho: Predicting[0]:
02-27 08:37:27.240 1697 2113 I AiAiEcho: EchoTargets:
@dnfield
dnfield / SymbolicatedCrash.log
Last active August 23, 2023 19:42
Vulkan crash on Samsung A02
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/a02qsq/a02q:11/RP1A.200720.012/A025VSQS2BVE2:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2023-08-23 12:36:18-0700
pid: 24256, tid: 18167, name: 1.raster >>> com.example.agif <<<
uid: 10022
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x68
Cause: null pointer dereference
r0 00000048 r1 00000000 r2 000002d0 r3 00000001
BEFORE Galaxy Tab 6
"average_frame_build_time_millis": 2.3840609756097555,
"90th_percentile_frame_build_time_millis": 5.198,
"99th_percentile_frame_build_time_millis": 15.045,
"worst_frame_build_time_millis": 22.278,
"missed_frame_build_budget_count": 2,
"average_frame_rasterizer_time_millis": 10.782721212121219,
"90th_percentile_frame_rasterizer_time_millis": 32.646,
"99th_percentile_frame_rasterizer_time_millis": 50.297,
(lldb) bt
* thread #7, name = 'io.flutter.raster', stop reason = EXC_BAD_ACCESS (code=2, address=0x16bd03ff8)
* frame #0: 0x0000000107472b30 FlutterMacOS`SkIDChangeListener::List::changed() + 36
frame #1: 0x00000001074b7180 FlutterMacOS`SkPathRef::Editor::Editor(sk_sp<SkPathRef>*, int, int) + 316
frame #2: 0x00000001074adb2c FlutterMacOS`SkPath::moveTo(float, float) + 68
frame #3: 0x0000000107675140 FlutterMacOS`GrShape::asPath(SkPath*, bool) const + 452
frame #4: 0x00000001076927b0 FlutterMacOS`skgpu::ganesh::AAHairLinePathRenderer::onDrawPath(skgpu::ganesh::PathRenderer::DrawPathArgs const&) + 164
frame #5: 0x000000010764c6d0 FlutterMacOS`skgpu::ganesh::SurfaceDrawContext::drawShapeUsingPathRenderer(GrClip const*, GrPaint&&, GrAA, SkMatrix const&, GrStyledShape&&, bool) + 1020
frame #6: 0x000000010764f6bc FlutterMacOS`skgpu::ganesh::SurfaceDrawContext::drawShape(GrClip const*, GrPaint&&, GrAA, SkMatrix const&, GrStyledShape&&) + 344
frame #7: 0x000000010764e290 FlutterMacOS`skg
import 'dart:ui' as ui;
// import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized().addObserver(FoldObserver());
runApp(const MaterialApp(home: Text('Hello!')));
}
package com.example.onsizechange
import android.app.Activity
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.window.layout.WindowMetricsCalculator
@dnfield
dnfield / aiks_unittests.cc
Last active March 15, 2023 23:30
Test to image instead of playground
TEST_P(AiksTest, CanRenderStrokes) {
Canvas canvas;
Paint paint;
paint.color = Color::Red();
paint.stroke_width = 20.0;
paint.style = Paint::Style::kStroke;
canvas.DrawPath(PathBuilder{}.AddLine({200, 100}, {800, 100}).TakePath(),
paint);
Picture picture = canvas.EndRecordingAsPicture();
std::shared_ptr<Image> image = picture.ToImage(GetContext(), {1000, 1000});
import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
routes: {
'/': buildHome,
'/a': buildA,
'/b': buildB,
},
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
theme: ThemeData(
pageTransitionsTheme: const PageTransitionsTheme(builders: {
TargetPlatform.android: CupertinoPageTransitionsBuilder(),
TargetPlatform.windows: CupertinoPageTransitionsBuilder(),
TargetPlatform.macOS: CupertinoPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
diff --git a/impeller/entity/contents/clip_contents.cc b/impeller/entity/contents/clip_contents.cc
index 2497e4daa9..a7ba8e6ec7 100644
--- a/impeller/entity/contents/clip_contents.cc
+++ b/impeller/entity/contents/clip_contents.cc
@@ -121,7 +121,8 @@ bool ClipContents::Render(const ContentContext& renderer,
auto allocator = renderer.GetContext()->GetResourceAllocator();
auto geometry_result = geometry_->GetPositionBuffer(
allocator, host_buffer, renderer.GetTessellator(),
- pass.GetRenderTargetSize());
+ pass.GetRenderTargetSize(),