Skip to content

Instantly share code, notes, and snippets.

Jason J. W. Williams williamsjj

Block or report user

Report or block williamsjj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d0ce559855d7733559c75d048c8109bb
Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: com.google.android.gms.internal.zzfim|com/google/android/gms/internal/zzfim|com/google/android/gms/measurement/AppMeasurement
at org.chromium.bytecode.CustomClassLoaderClassWriter.getCommonSuperClass(CustomClassLoaderClassWriter.java:34)
at org.objectweb.asm.ClassWriter.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.Frame.a(Unknown Source)
at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
at org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source)
at org.objectweb.asm.MethodVisitor.visitMaxs(Unknown Source)
at org.objectweb.asm.ClassReader.a(Unknown Source)
at org.objectweb.asm.ClassReader.b(Unknown Source)
View gist:bda5661eb4ca9bde815327b96173295b
FAILED: obj/app_components/third_party/okhttp/okhttp_java__process_prebuilt-bytecode-rewritten.jar
python ../../build/android/gyp/bytecode_processor.py --depfile gen/app_components/third_party/okhttp/okhttp_java__process_prebuilt__bytecode_rewrite.d --script bin/helper/java_bytecode_rewriter --input-jar ../../app_components/third_party/okhttp/okhttp-2.4.0.jar --output-jar obj/app_components/third_party/okhttp/okhttp_java__process_prebuilt-bytecode-rewritten.jar --enable-assert --enable-custom-resources --extra-classpath-jar @FileArg\(gen/app_components/third_party/okhttp/okhttp_java.build_config:android:sdk_jars\) --extra-classpath-jar @FileArg\(gen/app_components/third_party/okhttp/okhttp_java.build_config:deps_info:javac_full_classpath\)
Traceback (most recent call last):
File "../../build/android/gyp/bytecode_processor.py", line 48, in <module>
sys.exit(main(sys.argv))
File "../../build/android/gyp/bytecode_processor.py", line 40, in main
build_utils.CheckOutput(cmd)
File "/home/user/git/app
@williamsjj
williamsjj / BUILD.gn
Created Apr 18, 2017
JNI Chromium Example
View BUILD.gn
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
generate_jni("xyz_config_jni_headers") {
sources = [
"java/src/com/example/configuration/XYZConfiguration.java",
"java/src/com/example/configuration/XYZUserPreferences.java",
]
jni_package = "xyz_config_jni"
}
View gist:a74347f791b497214be74c7ab397ea11
1. Clone Google depot_tools repo:
* git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /git/depot_tools
2. Add depot_tools to working path:
* export PATH="$PATH:/git/depot_tools"
3. Clone DigiTar Chromium Repo
* mkdir -p /git/chromium
* cd /git/chromium
* fetch --nohooks android
4. Check out latest stable branch
View gist:3bac172c639f8b3cb89858df17dd95d4
[FATAL:navigation_handle_impl.cc(208)] Check failed: state_ == DID_COMMIT || state_ == DID_COMMIT_ERROR_PAGE. This accessor should not be called before the navigation has committed.
Stack Trace:
RELADDR FUNCTION FILE:LINE
00094011 ~LogMessage /home/chromium/git/chromium/src/base/logging.cc:532
00719789 IsSamePage /home/chromium/git/chromium/src/content/browser/frame_host/navigation_handle_impl.cc:208
0025b8a9 DidStartNavigation /home/chromium/git/chromium/src/chrome/browser/content_settings/tab_specific_content_settings.cc:803
-----------------------------------------------------
View chromium55_kindlefire7_android511.txt
W/Resources(11539): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f100095}
W/Resources(11539): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f1001b2}
W/Resources(11539): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f1001b5}
W/Resources(11539): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f1001b6}
W/Resources(11539): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f1001b7}
W/Resources(11539): Converting to string: TypedValue{t=0x5/d=0xc01 a=3 r=0x7f0c00dc}
W/Resources(11539): Converting to string: TypedValue{t=0x5/d=0xc01 a=3 r=0x7f0c00dc}
I/Vlog ( 906): Fluidity:warm_launch_time:fgtracking=false;DV;1,key=org.chromium.chrome/.browser.firstrun.FirstRunActivity;DV;1,Timer=512.0;TI;1,unit=ms;DV;1:HI
I/ActivityManager( 906): Displayed org.chromium.chrome/.browser.firstrun.FirstRunActivity: +512ms
D/cr_ChildProcLauncher(11539): [ChildProcessLauncher.java:96] Allocator allocated a connection, sandbox: true, slot: 1
View chromium55_nexus5x_android711.txt
01-23 14:19:39.770 4720 4738 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.chromium.chrome/com.google.android.apps.chrome.Main (has extras)} from uid 10037 on display 0
01-23 14:19:39.781 3590 3931 D audio_hw_primary: enable_snd_device: snd_device(78: vi-feedback)
01-23 14:19:39.782 3590 3931 D audio_hw_primary: enable_audio_route: usecase(21) apply and update mixer path: spkr-vi-record
01-23 14:19:39.808 3590 3931 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback
01-23 14:19:39.823 14817 14817 I art : Late-enabling -Xcheck:jni
01-23 14:19:39.823 4720 12339 I ActivityManager: Start proc 14817:org.chromium.chrome/u0a102 for activity org.chromium.chrome/com.google.android.apps.chrome.Main
01-23 14:19:39.921 14817 14817 I MultiDex: VM with version 2.1.0 has multidex support
01-23 14:19:39.921 14817 14817 I MultiDex: install
01-23 14:19:39.921 14817 14817 I MultiDex: VM has m
View gist:5381320fe405358c2f604b3ab22a5381
$ gn gen '--args "target_os=android"' out/Default
ERROR at //build/config/BUILDCONFIG.gn:134:15: Reading a variable defined in the same declare_args() call.
If you need to set the value of one arg based on another, put
them in two separate declare_args() calls, one after the other.
is_debug = !is_official_build
View gist:49e4c6a0b3324343205386d040560e1e
WARN [CompactionExecutor:6933] 2016-08-08 22:48:11,075 ViewBuilder.java:178 - Materialized View failed to complete, sleeping 5 minutes before restarting
java.lang.IllegalArgumentException: Mutation of 17709054 bytes is too large for the maximum size of 16777216
at org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:256) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:467) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:384) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.Mutation.applyFuture(Mutation.java:205) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.Mutation.apply(Mutation.java:217) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:759) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.view.ViewBuilder.buildKey(ViewBuilder.java:94) ~[apache-cassandra-3.0.8.jar:3.0.8]
at org.apache.cassandra.db.vi
View gist:55ce6a34f4c559234fcf609107a27ff9
Hi Madhukar,
It looks like you've had an unclean leader election in this case. Have a
look at the documentation for unclean.leader.election.enable and set it to
false if you'd like to try and avoid data loss in this scenario. By
default it is set to true.
Reference: http://kafka.apache.org/documentation.html#design_uncleanleader
Regards,
You can’t perform that action at this time.