Skip to content
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

cameraPhoto and cameraVideo appear to not work in 21.3 #9

Closed
scottgwald opened this issue Oct 8, 2014 · 18 comments
Closed

cameraPhoto and cameraVideo appear to not work in 21.3 #9

scottgwald opened this issue Oct 8, 2014 · 18 comments
Labels

Comments

@scottgwald
Copy link
Collaborator

perhaps someone else can verify? I haven't had a chance to look at logcat.

@scottgwald scottgwald added the bug label Oct 8, 2014
@jaredalexander
Copy link

i am unable to get the camera to work with wearscript (but i've only tested on the from the version i installed from this command: curl -L http://goo.gl/U1RIHm > install.py && python install.py). I'm on 21.3 as well...

@scottgwald
Copy link
Collaborator Author

Hi Jared, you wouldn't happen to be able to give us some info from adb logcat would you? This is high priority but we're also a little swamped.

@jaredalexander
Copy link

When I try to run the simple cameraOn example at http://www.wearscript.com/en/latest/camera.html, I get the following logcat output:

10-12 22:07:25.383 17472-17526/? D/SocketController﹕ Got android
10-12 22:07:25.391 17472-17526/? D/Manager﹕ {}
10-12 22:07:25.391 17472-17526/? D/Manager﹕ Callback not found: android
10-12 22:07:25.391 17472-17526/? D/ConnectionManager﹕ onReceive: android
10-12 22:07:25.391 17472-17526/? D/ConnectionManager﹕ Got android script
10-12 22:07:25.399 17472-17526/? D/WearScript:Utils﹕ Lifecycle: SaveData: /storage/emulated/0/wearscript/scripting/glass.html
10-12 22:07:25.399 17472-17526/? D/WearScript:Utils﹕ Lifecycle: SaveData: /storage/emulated/0/wearscript/scripting/manifest.json
10-12 22:07:25.438 17472-17526/? D/dalvikvm﹕ GC_FOR_ALLOC freed 130K, 9% free 6790K/7412K, paused 29ms, total 29ms
10-12 22:07:25.446 17472-17526/? I/dalvikvm-heap﹕ Grow heap (frag case) to 6.792MB for 131088-byte allocation
10-12 22:07:25.469 17472-17479/? D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 9% free 6918K/7544K, paused 31ms, total 31ms
10-12 22:07:25.493 17472-17472/? D/BackgroundService﹕ reset
10-12 22:07:25.493 17472-17526/? D/WearScript:Utils﹕ Event: com.dappervision.wearscript.events.ScriptEvent Time: 0.004760742
10-12 22:07:25.493 17472-17526/? D/ConnectionManager﹕ Got Channel: android
10-12 22:07:25.571 17472-17472/? D/BluetoothAdapter﹕ stopLeScan()
10-12 22:07:25.571 17472-17472/? D/GLASSCONTROL﹕ Created AdbTcpInputHandler
10-12 22:07:25.579 17472-17472/? E/ActivityThread﹕ Failed to find provider info for com.getpebble.android.provider
10-12 22:07:25.586 17472-17472/? D/BackgroundService﹕ updateActivityView: WEBVIEW
10-12 22:07:25.899 17472-17472/? D/BackgroundService﹕ webview.isHardwareAccelerated: false
10-12 22:07:25.899 17472-17472/? D/BackgroundService﹕ updateActivityView: WEBVIEW
10-12 22:07:25.899 17472-17472/? I/BackgroundService﹕ WebView: /storage/emulated/0/wearscript/scripting/glass.html
10-12 22:07:25.930 17472-17472/? I/BackgroundService﹕ WebView Ran
10-12 22:07:25.938 17472-17472/? W/AwContents﹕ nativeOnDraw failed; clearing to background color.
10-12 22:07:26.110 17472-17472/? I/chromium﹕ [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
10-12 22:07:26.118 17472-17518/? D/WearScript﹕ cameraOn: Callback: WSLdHW0
10-12 22:07:26.118 17472-17518/? D/Event﹕ No subscribers registered for event class com.dappervision.wearscript.events.CameraEvents$Start
10-12 22:07:26.118 17472-17518/? D/Event﹕ No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
10-12 22:07:26.125 17472-17518/? D/WearScript:Utils﹕ Event: com.dappervision.wearscript.events.CameraEvents$Start Time: 0.001312257
10-12 22:07:26.149 17472-17518/? D/WearScript:Utils﹕ Event: com.dappervision.wearscript.events.CallbackRegistration Time: 2.74658E-4
10-12 22:07:26.172 17472-17472/? I/chromium﹕ [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
10-12 22:07:51.118 873-873/? W/ViewToLiveCardTranslator﹕ Could not lock canvas on surfaceholder
10-12 22:07:51.118 873-873/? W/ViewToLiveCardTranslator﹕ Could not lock canvas on surfaceholder

@jaredalexander
Copy link

Additionally, I've never been able to get the ibeacon examples to work as described here: http://www.wearscript.com/en/latest/sensors.html#ibeacons

Any help would be greatly appreciated! I have a few WearScript presentations coming up and the more features I can demo, the better. I really love the concept! Thanks!

@scottgwald
Copy link
Collaborator Author

Thanks Jared, I should be able to have a look at it tomorrow. I have some things I have to get out tonight.

@scottgwald
Copy link
Collaborator Author

jared can you file the ibeacons issue separately

@jaredalexander
Copy link

Absolutely, I'll file separately. FYI - I'm giving a talk on WearScript at the MoDev Wearables + Things conference on Tuesday, October 21st in Washington DC entitled "Rapid Prototyping Google Glass Apps using WearScript" . Check it out here: http://wnt2014.gomodev.com/. I know you all are super busy but if you could provide any type of hotfixes for the camera and/or iBeacon functionality, then my presentation and hands-on exercises will be a lot more fun. Thanks!

@scottgwald
Copy link
Collaborator Author

Cool, great! I saw that you were on the irc channel. We do actually use it, sorry that no one responded to you immediately.

@jaredalexander
Copy link

All good!

Just submitted 2 additional issues:
wearscript#236
wearscript#235

@kurtisnelson
Copy link
Owner

@jaredalexander don't worry, I too am giving a wearscript presentation at a conference in 2 weeks.

I think the ibeacons docs are out of date, you want to use WS.beacon. The canonical source for the latest javascript commands is this file: https://github.com/kurtisnelson/wearscript-android/blob/upstream-dev/WearScript/src/main/assets/init.js#L1019

@kurtisnelson
Copy link
Owner

Seems we can no longer grab the camera manager in https://github.com/kurtisnelson/wearscript-android/blob/upstream-dev/WearScript/src/main/java/com/dappervision/wearscript/ui/ScriptActivity.java#L83

Corresponding crash: https://app.crittercism.com/developers/crash-details/b268aa1ee54ba9539902445d2bd5f9a12a3f76faafe142910f596793

java.lang.NullPointerException
at com.dappervision.wearscript.ui.ScriptActivity$1.onServiceConnected(ScriptActivity.java:83)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1110)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1127)

@kurtisnelson
Copy link
Owner

@jaredalexander
Copy link

Thanks! I haven't had a chance to test out taking pics - but I just tested the default sample wearscript provided by you all, and no images show up in the images tab:

// Stream camera frames (can view in the Images tab)
WS.cameraOn(.25);

@kurtisnelson
Copy link
Owner

Well at least it doesn't crash...

@jaredalexander
Copy link

:) The only reason I care about that feature is that I have another WearScript that shows a live feed from the camera on the Glass display (facial feature detection type script)

@kurtisnelson
Copy link
Owner

Ok, updated the one-liner again, the PackageManager is incorrectly reporting that Glass does not have a camera.

@jaredalexander
Copy link

Fixed! Thank you SO much! You guys are awesome.

@scottgwald
Copy link
Collaborator Author

Yay! Good work Kurt

On Tue, Oct 14, 2014 at 11:53 PM, Jared Alexander [email protected]
wrote:

Fixed! Thank you SO much! You guys are awesome.


Reply to this email directly or view it on GitHub
#9 (comment)
.

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

No branches or pull requests

3 participants