Skip to content

Instantly share code, notes, and snippets.

View iskakaushik's full-sized avatar

Kaushik Iska iskakaushik

View GitHub Profile
11-09 10:20:32.738 27348 27398 D skia : Requested font file /system/fonts/NotoSansJavanese-Regular.ttf does not exist or cannot be opened.
11-09 10:20:40.307 1360 2253 E ActivityThread: Failed to find provider info for com.google.android.apps.wellbeing.api
11-09 10:20:40.982 5100 5141 I WorkerManager: dispose()
11-09 10:20:40.983 5100 5141 W ThreadPoolDumper: Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
11-09 10:20:42.008 27348 27408 F libc : Fatal signal 4 (SIGILL), code -6 (SI_TKILL) in tid 27408 (DartWorker), pid 27348 (macrobenchmarks)
11-09 10:20:42.116 27420 27420 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
11-09 10:20:42.118 346 346 I tombstoned: received crash request for pid 27408
11-09 10:20:42.120 27420 27420 I crash_dump32: performing dump of process 27348 (target tid = 27408)
11-09 10:20:42.128 27420 27420 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-09
------------ TASK ------------
Task(id: 6626587178041344, parentKey: flutter/flutter/master/aa49821613372234368d2371d76d48f6250f4ee0, key: 6626587178041344, commitKey: flutter/flutter/master/aa49821613372234368d2371d76d48f6250f4ee0, createTimestamp: 1589837523635, startTimestamp: 1589838294853, endTimestamp: 1589838716719, name: flutter_gallery_ios32__transition_perf, attempts: 2, isFlaky: true, timeoutInMinutes: 0, reason: Task failed on agent, requiredCapabilities: [mac/ios32], reservedForAgentId: flutter-devicelab-mac-11, stageName: devicelab_ios, status: Failed)
------------ LOG ------------
Deleting build/ directories, if any.
Deleting /Users/flutter/.cocoon/flutter/dev/integration_tests/flutter_gallery/build
2020-05-18T14:37:33.513233: Agent ID: flutter-devicelab-mac-112020-05-18T14:44:28.459977: stdout: package:stack_trace/src/stack_zone_specification.dart 209:15 StackZoneSpecification._run
stdout: package:stack_trace/src/stack_zone_specification.dart 119:48 StackZoneSpecification._registerC
@iskakaushik
iskakaushik / audio_wave_generator.mm
Created January 5, 2020 22:40
Code to generate basic audio wave forms. Supported waveforms: saw-tooth, sine and square.
#include <cmath>
#include <cstdlib>
#include <string>
#import <AudioToolbox/AudioToolbox.h>
#import <CoreData/CoreData.h>
#import <Foundation/Foundation.h>
#define FILENAME_FORMAT @"%0.3f-%@.aif"
This file has been truncated, but you can view the full file.
Building flutter tool...
Waiting for another flutter command to release the startup lock...
Upgrading packages...
WARNING: the following packages use hard-coded version constraints:
- flutter_gallery_assets: 0.1.9+2
- mockito: ^4.1.0
- vm_service_client: 0.2.6+2
Running "flutter pub upgrade" in flutter_update_packages.UMIANC...
Resolving dependencies...
fact: flutter_update_packages is 0.0.0
class SizeAwareImageCacheKey {
const SizeAwareImageCacheKey(this._providerCacheKey, this._imageSize);
final dynamic _providerCacheKey;
final Size _imageSize;
}
class SizeAwareImageProvicer
extends ImageProvider<SizeAwareImageCacheKey> {
const SizeAwareImageProvicer(this._imageProvider, this.imageSize);
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(MaterialApp(home: CrashingWebViewExample()));
class CrashingWebViewExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
diff --git a/android/app/build.gradle b/android/app/build.gradle
index d45d3b6..79bb62c 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -55,6 +55,7 @@ flutter {
}
dependencies {
+ implementation("com.google.android.gms:play-services-tasks:16.0.1")
testImplementation 'junit:junit:4.12'
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(MaterialApp(home: CrashingWebViewExample()));
class CrashingWebViewExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
final double maxHeight = MediaQuery.of(context).size.height;
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class Issue25169 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: GoogleMap(
initialCameraPosition: CameraPosition(
target: const LatLng(37.7749, 122.4194),
#include <cstdio>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;