Skip to content

Instantly share code, notes, and snippets.

View csadilek's full-sized avatar

Christian Sadilek csadilek

  • Mozilla
  • Toronto
View GitHub Profile
04-04 13:31:12.558 26347 26347 E ExceptionHandler: Uncaught exception handled:
04-04 13:31:12.558 26347 26347 E ExceptionHandler: mozilla.appservices.places.uniffi.PlacesApiException$UnexpectedPlacesException: reason=Error opening database: Error executing SQL: duplicate column name: unknownFields
04-04 13:31:12.558 26347 26347 E ExceptionHandler: at mozilla.appservices.places.uniffi.FfiConverterTypePlacesApiError.read(places.kt:2720)
04-04 13:31:12.558 26347 26347 E ExceptionHandler: at mozilla.appservices.places.uniffi.FfiConverterTypePlacesApiError.read(places.kt:2715)
04-04 13:31:12.558 26347 26347 E ExceptionHandler: at mozilla.appservices.places.uniffi.FfiConverter$DefaultImpls.liftFromRustBuffer(places.kt:151)
04-04 13:31:12.558 26347 26347 E ExceptionHandler: at mozilla.appservices.places.uniffi.FfiConverterRustBuffer$DefaultImpls.liftFromRustBuffer(places.kt:163)
04-04 13:31:12.558 26347 26347 E ExceptionHandler: at mozilla.appservices.places.uniffi.FfiConverterTypePlacesApiE
{
"action": "edited",
"number": 12973,
"pull_request": {
"url": "https://api.github.com/repos/mozilla-mobile/android-components/pulls/12973",
"id": 1091855456,
"node_id": "PR_kwDOB4WnIc5BFGRg",
"html_url": "https://github.com/mozilla-mobile/android-components/pull/12973",
"diff_url": "https://github.com/mozilla-mobile/android-components/pull/12973.diff",
"patch_url": "https://github.com/mozilla-mobile/android-components/pull/12973.patch",
{
"manifest_version": 2,
"applications": {
"gecko": {
"id": "ads@mozac.org"
}
},
"name": "Mozilla Android Components - Ads",
"version": "50.0.20200709130100.0709140922",
"content_scripts": [
<!DOCTYPE html>
<html>
<head>
<title>Article title</title>
<meta name="description" content="This is the article description." />
</head>
<body>
<header>Site header</header>
<div>
<h1>Article title</h1>
020-03-09 18:30:21.850 20620-20658/org.mozilla.samples.browser:tab D/GeckoThread: State changed to MOZGLUE_READY
2020-03-09 18:30:21.887 20620-20658/org.mozilla.samples.browser:tab W/Settings: Setting animator_duration_scale has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
2020-03-09 18:30:21.889 20620-20658/org.mozilla.samples.browser:tab E/GeckoLibLoad: Load sqlite start
2020-03-09 18:30:21.905 20620-20658/org.mozilla.samples.browser:tab W/GeckoLinker: /data/app/org.mozilla.samples.browser-1cDXmW3Wz3WC_-5lYwLEOg==/lib/arm64/libnss3.so: unhandled flags #8 not handled
2020-03-09 18:30:21.910 20620-20658/org.mozilla.samples.browser:tab E/GeckoLibLoad: Load sqlite done
2020-03-09 18:30:21.910 20620-20658/org.mozilla.samples.browser:tab E/GeckoLibLoad: Load nss start
2020-03-09 18:30:21.910 20620-20658/org.mozilla.samples.browser:tab E/GeckoLibLoad: Load nss done
2020-03-09 18:30:21.910 20620-20658/org.mozilla.samples.browser:tab W/GeckoLinker:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecute
AGPBI: {"kind":"error","text":"error: resource android:attr/ttcIndex not found.","sources":[{"file":"/Users/csadilek/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/2b8327c8c86d1e706d579b64c656f7c5/res/values/values.xml","position":{"startLine":1303,"startColumn":4,"startOffset":70911,"endColumn":68,"endOffset":70975}}],"original":"","tool":"AAPT"}
:app:processDebugResources
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
override fun saveState(): Map<String, Any> {
var result:Map<String, Any> = emptyMap()
val latch = CountDownLatch(1)
val handler = Handler(Looper.getMainLooper())
handler.post {
geckoSession.saveState().then({ state ->
result = mapOf(GECKO_STATE_KEY to state.toString())
latch.countDown()
then(object : FxaResult.OnValueListener<FirefoxAccount, Void> {
override fun onValue(value: FirefoxAccount?): FxaResult<Void>? {
if (value != null) {
account = value
val btn = findViewById<View>(R.id.button)
btn.setOnClickListener {
openOAuthTab()
}
}
return null
val listeners = ArrayList(mListeners)
for (listener in listeners) {
listener.onValue(mValue)
}
// Can be replaced with a single line:
ArrayList(mListeners).forEach { it.onValue(mValue) }