Skip to content

Chrome ARC support please #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MufriA opened this issue Apr 3, 2015 · 7 comments
Closed

Chrome ARC support please #156

MufriA opened this issue Apr 3, 2015 · 7 comments

Comments

@MufriA
Copy link

MufriA commented Apr 3, 2015

Tried to run app which used sqlcipher, db fails to open with error

  W/libposix_translation_static(  204): O_CLOEXEC is not supported

Any plans for Chrome ARC?

https://developer.chrome.com/apps/getstarted_arc

@developernotes
Copy link
Member

Hello @MufriA

Chrome ARC certainly looks interesting and it sounds like SQLCipher for Android would benefit from being able to run on Chrome. I'm unfamiliar with how new Chrome ARC is, however it appears they do not support O_CLOEXEC within their master branch.

@MufriA
Copy link
Author

MufriA commented Apr 3, 2015

Looks like google is working on it https://code.google.com/p/chromium/issues/detail?id=465683

@brody4hire
Copy link

Looks like google is working on it https://code.google.com/p/chromium/issues/detail?id=465683

Seems to be fixed now, at least in their "latest runtime" 43.5021.45.0.

@McPo
Copy link

McPo commented Jul 3, 2015

Ran into this issue on 45.5021.416.0

Although the SQLCipher Test Suite appears to work fine, https://zetetic.box.com/s/ya0vx5ct7igvl5bnn2n6jfrqwq1rdw6s

The application Im receiving the crash on has no problem running on any other tested devices and runs fine within bluestacks. Tested on Windows and OSX.

Logcat

01-04 08:05:28.248       204-53/? W/libposix_translation_static﹕ O_CLOEXEC is not supported

Stacktrace

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
       at android.os.Process$1.run(Process.java:425)
Caused by: java.lang.reflect.InvocationTargetException
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at android.os.Process$1.run(Process.java:418)
Caused by: java.lang.RuntimeException: Unable to create application com.xxxxxxx.xxxxxx.XxxxXXXxxxxxxxxxx: net.sqlcipher.database.SQLiteException: not an error
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4439)
       at android.app.ActivityThread.access$1400(ActivityThread.java:144)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1508)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:156)
       at android.app.ActivityThread.main(ActivityThread.java:5291)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at android.os.Process$1.run(Process.java:418)
Caused by: net.sqlcipher.database.SQLiteException: not an error
       at net.sqlcipher.database.SQLiteDatabase.dbopen(SourceFile)
       at net.sqlcipher.database.SQLiteDatabase.(SourceFile:1946)
       at net.sqlcipher.database.SQLiteDatabase.openDatabase(SourceFile:878)
       at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SourceFile:913)
       at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:132)
       at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:99)
       at xxx.xxxxxxx.xxxxxx.db.DbManager.setupDb(SourceFile:69)
       at xxx.xxxxxxx.xxxxxx.XxxxXXXxxxxxxxxxx.onCreate(SourceFile:86)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4436)
       at android.app.ActivityThread.access$1400(ActivityThread.java:144)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1508)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:156)
       at android.app.ActivityThread.main(ActivityThread.java:5291)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at android.os.Process$1.run(Process.java:418)

@McPo
Copy link

McPo commented Jul 3, 2015

Turns out I was looking at the version of ART Welder and not the runtime. The runtime can be found within the extensions page after installing the welder extension. I was on 43.4410.349.18

In order to get a more up to date version. You MUST uninstall the ART Welder from Google Chrome. And then download canary. However it appears the same issue still exists.

[58901:1299:0703/173750:INFO:CONSOLE(36)] "runtime_updated_while_running: null", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "log_message: net.sqlcipher.database.SQLiteException", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "stack_trace: java.lang.RuntimeException
    at android.os.Process$1.run(Process.java:536)
Caused by java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at android.os.Process$1.run(Process.java:529)
Caused by java.lang.RuntimeException
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4622)
    at android.app.ActivityThread.access$1500(ActivityThread.java:153)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:5510)
    ...3 more
Caused by net.sqlcipher.database.SQLiteException
    at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
    at net.sqlcipher.database.SQLiteDatabase.<init>(SourceFile:1946)
    at net.sqlcipher.database.SQLiteDatabase.openDatabase(SourceFile:878)
    at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SourceFile:913)
    at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:132)
    at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:99)
    at com.saltdna.saltim.db.g.a(SourceFile:69)
    at com.saltdna.saltim.SaltIMApplication.onCreate(SourceFile:90)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4619)
    ...8 more
", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "sig: net.sqlcipher.database.SQLiteException-f60989f4", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "arch: x86-64", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "nacl_arch: x86-64", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "os: mac", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(29)] "Crash reporting not enabled in Chrome.  Please enable it.", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (29)
[58901:1299:0703/173750:INFO:CONSOLE(36)] "FINISHED REPORTING CRASH", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_main.min.js (36)
[58901:1299:0703/173750:INFO:CONSOLE(125)] "Activity stack is empty. Shutting down.", source: chrome-extension://jcbfdnbnfbahfdcoplldgakgfmiljahn/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_index.min.js (125)
[58912:1299:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:1299:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:15443:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:15443:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58915:13315:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:1299:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:15443:0703/173750:VERBOSE1:ipc_sync_channel.cc(386)] Canceling pending sends
[58912:1299:0703/173750:VERBOSE1:dispatcher.cc(322)] Num tracked contexts: 2
[58912:1299:0703/173750:VERBOSE1:script_context.cc(106)] Destroyed context for extension
  extension id: jcbfdnbnfbahfdcoplldgakgfmiljahn
  effective extension id: jcbfdnbnfbahfdcoplldgakgfmiljahn
[58912:1299:0703/173750:VERBOSE1:script_context.cc(106)] Destroyed context for extension
  extension id:
  effective extension id:
[58901:41731:0703/173750:VERBOSE1:nacl_process_host.cc(333)] NaCl process exited with status 0 (0x0)
[58901:1299:0703/173802:VERBOSE1:mutable_profile_oauth2_token_service_delegate.cc(201)] MutablePO2TS::RefreshTokenIsAvailable

@fraglord94
Copy link

I am getting InvocationTargetException possibly when the database is being created.
Stacktrace at chrome://inspect/apps#apps. Is it happening during NDK translation ?

----------------------------------------
ARC Window Popup: 43.508ms
ARC appWindow Init: 1.936ms
ARC onInstalled HTML5 FS init: 356.065ms
Received a crash
prod: ARC
arc_app_name: *******
ptime: 3090.26100000483
crash_time: Mon Aug 03 2015 10:35:48 GMT+0530 (India Standard Time)
ver: 44.4410.376.13
arc_build_tag: arc-runtime-44.4410.376.13
message: Android unhandled exception
chrome_version: 44.0.2403.125
app_id: lpenmipoimkolgnmcncipajdpdglcneh
app_version: 0.9
app_package_name: com.*******
runtime_name: App Runtime for Chrome (Beta)
runtime_update_url: https://clients2.google.com/service/update2/crx
width: 960
height: 632
is_minimized: false
is_maximized: false
is_fullscreen: false
runtime_updated_while_running: null
log_message: net.sqlcipher.database.SQLiteException
stack_trace: java.lang.RuntimeException
    at android.os.Process$1.run(Process.java:425)
Caused by java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at android.os.Process$1.run(Process.java:418)
Caused by java.lang.RuntimeException
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4439)
    at android.app.ActivityThread.access$1400(ActivityThread.java:144)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1508)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:156)
    at android.app.ActivityThread.main(ActivityThread.java:5291)
    ...3 more
Caused by net.sqlcipher.database.SQLiteException
    at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
    at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1922)
    at *******.android.importfromasset.ImportUnencryptedDatabase.execute(ImportUnencryptedDatabase.java:59)
    at com.*******.android.*******DatabaseLibrary.copyDataBase(*******DatabaseLibrary.java:204)
    at com.*******.android.*******DatabaseLibrary.initialize(*******DatabaseLibrary.java:100)
    at com.*******.android.*******DatabaseLibrary.<init>(*******DatabaseLibrary.java:74)
    at com.*******.android.*******DatabaseLibrary.getInstance(*******DatabaseLibrary.java:159)
    at com.*******.android.*******AndroidApplicationContext.setDaoSession(*******AndroidApplicationContext.java:238)
    at com.*******.android.*******AndroidApplicationContext.setApplicationContext(*******AndroidApplicationContext.java:222)
    at com.*******.android.*******AndroidApplicationContext.onCreate(*******AndroidApplicationContext.java:211)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4436)
    ...8 more

sig: net.sqlcipher.database.SQLiteException-d2d0ebd8
arch: x86-32
nacl_arch: x86-64
os: win
Crash reporting not enabled in Chrome.  Please enable it.
FINISHED REPORTING CRASH
------------------------------

@Tapchicoma
Copy link

Seems this issue can be closed as Google will not support ARC any more, but done it with other approach: link to some details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants