Skip to content

Instantly share code, notes, and snippets.

View eseidel's full-sized avatar

Eric Seidel eseidel

View GitHub Profile
@eseidel
eseidel / log.txt
Created February 28, 2023 18:07
flutter_run log
Launching lib/main.dart on sdk gphone64 arm64 in release mode...
E/AndroidRuntime(10454): FATAL EXCEPTION: ScreenDecorations
E/AndroidRuntime(10454): Process: com.android.systemui, PID: 10454
E/AndroidRuntime(10454): java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter bottomLeft
E/AndroidRuntime(10454): at com.android.systemui.statusbar.events.PrivacyDotViewController.initialize(Unknown Source:22)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.setupDecorations(ScreenDecorations.java:315)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.startOnScreenDecorationsThread(ScreenDecorations.java:252)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations.$r8$lambda$bRx4s-frKyGv-SmpobluoualBbQ(Unknown Source:0)
E/AndroidRuntime(10454): at com.android.systemui.ScreenDecorations$$ExternalSyntheticLambda2.run(Unknown Source:2)
E/AndroidRuntime(10
eseidel@erics-mbp src % ./flutter/tools/gn --no-goma --unoptimized --mac-cpu=arm64
Using prebuilt Dart SDK binary. If you are editing Dart sources and wish to compile the Dart SDK, set `--no-prebuilt-dart-sdk`.
Generating GN files in: out/host_debug_unopt_arm64
WARNING at the command-line "--args":1:1213: Build argument has no effect.
is_debug=true use_goma=false goma_dir="None" flutter_build_web_sdk=false full_dart_sdk=false skia_enable_flutter_defines=true skia_use_dng_sdk=false skia_use_sfntly=false skia_enable_pdf=false skia_use_x11=false skia_use_wuffs=true skia_use_expat=false skia_use_fontconfig=false skia_use_legacy_layer_bounds=true skia_use_icu=true is_official_build=true android_full_debug=false is_clang=true skia_gl_standard="" use_clang_static_analyzer=false enable_coverage=false enable_lto=false host_os="mac" host_cpu="x64" target_os="mac" target_cpu="arm64" dart_target_arch="arm64" mac_sdk_min="10.14" mac_deployment_target="10.14.0" use_ios_simulator=false flutter_use_fontconfig=false dart_com
@eseidel
eseidel / gist:8e79a32b069a9798279f290d4f7a0dde
Created February 3, 2023 19:43
Trying to build flutter 3.7.1 with Android Studio Electric Eel 2022.1.1 Patch 1
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.10/e1c380673654a089c4f0c9f83d0ddfdc1efdb498/kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.6.10/b8af3fe6f1ca88526914929add63cf5e7c5049af/kotlin-stdlib-1.6.10.jar (version 1.6)
n 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/micro/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de
@eseidel
eseidel / flutter_fail.txt
Created February 3, 2023 17:42
`flutter build apk` failure on brand new `flutter create`
PS C:\Users\micro\Documents\GitHub\shorebird_private\shorebird\examples\hotswap> flutter build apk
Running "flutter pub get" in hotswap... 801ms
Building with sound null safety
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\micro\Documents\GitHub\shorebird_private\shorebird\examples\hotswap\android\settings.gradle' (C:\Users\micro\.gradle\caches\7.4\scripts\ea4ydi90mwjg9g63m7r6nimmx).
class Pressure {
final double nPa; // nanopascals e-9
const Pressure.nPa(this.nPa);
const Pressure.uPa(double uPa) : nPa = uPa * 1000;
const Pressure.mPa(double mPa) : nPa = mPa * 1000000;
const Pressure.zero() : nPa = 0;
const Pressure.max() : nPa = double.maxFinite;
Pressure operator +(Pressure other) => Pressure.nPa(nPa + other.nPa);
Pressure operator -(Pressure other) => Pressure.nPa(nPa - other.nPa);
@eseidel
eseidel / center.dart
Created June 13, 2022 01:15
confused by center behavior.
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
class FooGame extends FlameGame {
@override
Future<void> onLoad() async {
debugMode = true;
var paint = Paint()..color = Colors.green;
double rectSize = 50;
@eseidel
eseidel / center.dart
Created June 13, 2022 01:11
Unexpected Anchor.center behavior
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flutter/material.dart';
class FooGame extends FlameGame {
@override
Future<void> onLoad() async {
debugMode = true;
var paint = Paint()..color = Colors.green;
double rectSize = 50;
@eseidel
eseidel / gist:5ddd15f9806bb514f06f3cbab2306445
Created June 12, 2022 23:52
Seek is not stabilizing as expected.
Log:
flutter: position: [575.9139264665203,261.86483938500254] velocity: [9.772995914806668,-2.1186200341666246] maxSpeed: 10.0 adjustedMaxSpeed: 10.0 dt: 0.016667 distance: 2.8728173518205047 newVelocity: [-9.772995914806673,2.118620034166597]
flutter: position: [566.1409305517136,263.98345941916915] velocity: [-9.772995914806673,2.118620034166597] maxSpeed: 10.0 adjustedMaxSpeed: 10.0 dt: 0.016666 distance: 7.127182648179469 newVelocity: [9.772995914806668,-2.1186200341666246]
flutter: position: [575.9139264665203,261.86483938500254] velocity: [9.772995914806668,-2.1186200341666246] maxSpeed: 10.0 adjustedMaxSpeed: 10.0 dt: 0.016667 distance: 2.8728173518205047 newVelocity: [-9.772995914806673,2.118620034166597]
flutter: position: [566.1409305517136,263.98345941916915] velocity: [-9.772995914806673,2.118620034166597] maxSpeed: 10.0 adjustedMaxSpeed: 10.0 dt: 0.016667 distance: 7.127182648179469 newVelocity: [9.772995914806668,-2.1186200341666246]
flutter: position: [575.9139264665203,261.86483938500254] ve
@eseidel
eseidel / test.dart
Created June 12, 2022 20:15
Radiant + Flame
class NavigationComponent extends Component with Steerable {
@override
Vector2 get position => positionParent?.position ?? Vector2.zero();
@override
Vector2 velocity = Vector2.zero();
@override
double get angle => positionParent?.angle ?? 0;
@override
double angularVelocity = 0;
@override
@eseidel
eseidel / burndown.txt
Created August 4, 2021 03:23
burndown list to using wren_c's wren_test!
==== Building wren_test (release_64bit) ====
Linking wren_test
Undefined symbols for architecture x86_64:
"_wrenAbortFiber", referenced from:
_runtimeError in error.o
_badClassAllocate in foreign_class.o
"_wrenCall", referenced from:
_call in benchmark.o
_callRunTests in call.o
_callCallsForeignRunTests in call_calls_foreign.o