Skip to content

Instantly share code, notes, and snippets.

View carloxavier's full-sized avatar
:octocat:

Carlo Lopez carloxavier

:octocat:
View GitHub Profile
E/AndroidRuntime(18109): java.lang.NullPointerException: Attempt to invoke virtual method 'void io.flutter.plugin.common.MethodChannel.invokeMethod(java.lang.String, java.lang.Object)' on a null object reference
E/AndroidRuntime(18109): at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin$EventObserver.onEvent(CloudFirestorePlugin.java:451)
E/AndroidRuntime(18109): at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin$EventObserver.onEvent(CloudFirestorePlugin.java:433)
E/AndroidRuntime(18109): at com.google.firebase.firestore.Query.lambda$addSnapshotListenerInternal$2(com.google.firebase:firebase-firestore@@21.3.0:1025)
E/AndroidRuntime(18109): at com.google.firebase.firestore.Query$$Lambda$3.onEvent(Unknown Source:6)
E/AndroidRuntime(18109): at com.google.firebase.firestore.core.AsyncEventListener.lambda$onEvent$0(com.google.firebase:firebase-firestore@@21.3.0:42)
E/AndroidRuntime(18109): at com.google.firebase.firestore.core.AsyncEventListener$$Lambda$1.run(Unknown Source:6
/* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hint: you may want to write one or more helper functions.
The Node class is defined as follows:
class Node {
int data;
Node left;
Node right;
}
*/
@carloxavier
carloxavier / Anagrams.scala
Last active October 10, 2016 22:55
combinatorials in scala; last week's assignment for progfun1
package forcomp
import java.io.Serializable
object Anagrams {
/** A word is simply a `String`. */
type Word = String
@carloxavier
carloxavier / crash_on_OnePlus3
Created September 13, 2016 15:46
device from niklas
09-13 17:46:05.348 17390-17390/com.tellm.android.app E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.tellm.android.app, PID: 17390
java.lang.IndexOutOfBoundsException
at java.util.LinkedList.get(LinkedList.java:519)
at com.jodelapp.jodelandroidv3.features.feed.FeedRecyclerAdapter.bindPostViewHolder(FeedRecyclerAdapter.java:298)
at com.jodelapp.jodelandroidv3.features.feed.FeedRecyclerAdapter.onBindViewHolder(FeedRecyclerAdapter.java:116)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)
03-07 15:10:43.844 775-971/? E/ActivityManager: ANR in com.tellm.android.app (com.tellm.android.app/com.jodelapp.jodelandroidv3.view.MainActivity)
PID: 27749
Reason: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 17. Wait queue head age: 20585.3ms.)
Load: 3.81 / 5.16 / 9.08
CPU usage from 0ms to 61441ms later:
35% 298/debuggerd: 17% user + 17% kernel / faults: 6158 minor 15 major
16% 775/system_server: 6% user + 10% kernel / faults: 20949 minor 281 major
3.2% 27860/com.google.android.googlequicksearchbox:search: 2% user + 1
@carloxavier
carloxavier / non-fatal-error
Created March 1, 2016 15:45
fix casting error on gcm listener
03-01 16:44:19.112 24919-25250/? W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:800)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:194)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:136)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:101)
at com.google.android.gms.gcm.GcmListenerService.l(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.k(Unknown Source)
at com.goog
@carloxavier
carloxavier / logs-app-launch
Created February 29, 2016 16:06
logs from the fresh app launch with gps-only and mobile network internet
---> HTTP POST https://api.go-tellm.com:443/api/v2/users/
User-Agent: Jodel/4.3.5 Dalvik/2.1.0 (Linux; U; Android 5.0.1; GT-I9505 Build/LRX22C)
Content-Type: application/json; charset=UTF-8
Content-Length: 227
{"client_id":"81e8a76e-1e02-4d17-9ba0-8a7020261b26","device_uid":"af9fa0bdb8dd2b50d624f6820e7446a9d7145d47f40f27b1ef04cd907895bb29","location":{"city":"","loc_coordinates":{"lat":0.0,"lng":0.0},"country":"","loc_accuracy":0.0}}
---> END HTTP (227-byte body)
<--- HTTP 200 https://api.go-tellm.com:443/api/v2/users/ (3236ms)
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Date: Mon, 29 Feb 2016 16:05:23 GMT
@carloxavier
carloxavier / another_crash_at_startup_configKeys
Created February 24, 2016 11:12
configKeys are null, wtf
02-24 12:09:29.611 14206-14206/com.tellm.android.app D/ConfigStorageAdapter: appVersion=4.2.41
02-24 12:09:29.611 14206-14206/com.tellm.android.app D/ConfigStorageAdapter: configKeys are null
02-24 12:11:36.941 16271-16271/com.tellm.android.app D/ConfigStorageAdapter: appVersion=4.2.41
02-24 12:11:36.941 16271-16271/com.tellm.android.app D/ConfigStorageAdapter: configKeys are null
@carloxavier
carloxavier / yet_another_crash_at_startup
Created February 24, 2016 11:10
another crash at startup, this time appears to be facebook sdk
02-24 12:09:22.521 13346-13451/? W/appmanager(:<default>):LightSharedPreferencesImpl: Failed to load preference file from Disk!
java.io.FileNotFoundException: /data/data/com.facebook.appmanager/app_light_prefs/com.facebook.appmanager/analytics_flexible_sampling_policy: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:456)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at com.facebook.crudolib.d.k.a(LightSharedPreferencesStorage.java:56)
at com.facebook.crudolib.d.g.run(LightSharedPreferencesImpl.java:61)
@carloxavier
carloxavier / timoutError
Created February 5, 2016 17:57
crash on interceptor
02-05 18:54:33.141 26177-26255/com.tellm.android.app E/RestManager: failed to retrieve configuration properties
java.net.ConnectException: failed to connect to conf.ext.go-tellm.com/185.34.27.20 (port 443): connect failed: ETIMEDOUT (Connection timed out)
at libcore.io.IoBridge.connect(IoBridge.java:124)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
at java.net.Socket.connect(Socket.java:882)
at com.android.okhttp.internal.Platform.connectSocket(Platform.java:139)