cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
pez 2021-06-08T09:20:35.106200Z

I’ve run into this strange issue that some changes I’ve made cause the Android version of the app to sometimes turn almost completely unresponsive. All I can do is scroll the current view. No buttons work, including tabs. Also the REPL “disappears” shadow-cljs says “No JS Runtime”. Anyone know of some adb commands I can run to try see what (if anything) is going on on the phone? Or even recognize the condition. I’m completely clueless…

pez 2021-06-09T07:00:52.111200Z

0.61.5.

raspasov 2021-06-10T00:11:13.118400Z

That’s actually not too old. Sorry, I haven’t tried Android in a while so I can’t offer much help.

raspasov 2021-06-10T00:11:23.118600Z

Did you manage to get it working?

pez 2021-06-10T07:47:10.118900Z

Thanks for asking! I think I might have managed to not provoke it in the release build by removing some transition animations. It makes the app less lovely, and also it still happens on reload of the dev app making my Android development workflow painful. So, no, haven’t really got it working.

pez 2021-06-10T07:52:04.119100Z

The RN version we use is old enough to make upgrading from it to something modern really hard. We have a branch where we are using RN 64, and this lock-up problem is gone there. But there are quite a lot of other problems, one of which is that the Android app is super slow and not really usable…

dotemacs 2021-06-08T09:21:11.106300Z

adb logcat ?

pez 2021-06-08T09:24:16.106500Z

Thanks! When I try that I see that things happen at some layer when I tap things:

06-08 11:22:31.569   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x1, toolType: 0
06-08 11:22:31.569 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 1
06-08 11:22:31.849   874  4103 D SSRM:n  : SIOP:: AP = 360, PST = 360, CUR = 450, LCD = 160
06-08 11:22:33.519   874  1304 I InputDispatcher: Delivering touch to (1389): action: 0x4, toolType: 0
06-08 11:22:33.519   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x0, toolType: 0
06-08 11:22:33.529 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 0
06-08 11:22:33.529   874  1304 D PowerManagerService: [api] userActivityFromNative : 240 (event: 2 flags: 0) eventTime = 654302544
06-08 11:22:33.609   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x1, toolType: 0
06-08 11:22:33.609 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 1
06-08 11:22:34.949   874  1999 E Watchdog: !@Sync 21798 [06-08 11:22:34.960]
06-08 11:22:35.579   874  1304 I InputDispatcher: Delivering touch to (1389): action: 0x4, toolType: 0
06-08 11:22:35.579   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x0, toolType: 0
06-08 11:22:35.579 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 0
06-08 11:22:35.659   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x1, toolType: 0
06-08 11:22:35.659 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 1
06-08 11:22:36.399   874  1304 I InputDispatcher: Delivering touch to (1389): action: 0x4, toolType: 0
06-08 11:22:36.399   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x0, toolType: 0
06-08 11:22:36.399 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 0
06-08 11:22:36.479   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x1, toolType: 0
06-08 11:22:36.489 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 1
06-08 11:22:37.299   874  1304 I InputDispatcher: Delivering touch to (1389): action: 0x4, toolType: 0
06-08 11:22:37.299   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x0, toolType: 0
06-08 11:22:37.299 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 0
06-08 11:22:37.359   874  1304 I InputDispatcher: Delivering touch to (11875): action: 0x1, toolType: 0
06-08 11:22:37.359 11875 11875 D ViewRootImpl: ViewPostImeInputStage processPointer 1

thheller 2021-06-08T09:24:46.106700Z

react-native log-android? (or whatever the command was for getting console.log logs)

pez 2021-06-08T09:25:57.107100Z

That was the command. 😃

pez 2021-06-08T09:26:37.107300Z

However, nothing is logged, which I guess tells me something…

thheller 2021-06-08T09:27:34.107500Z

hmm yeah no idea how to debug RN stuff either. maybe you added an infitie loop or so?

pez 2021-06-08T09:31:06.107700Z

I shouldn’t have (not ruling it out). It only happens on Android which is extra strange.

pez 2021-06-08T09:36:10.109300Z

On a brighter note. Have you tried Vysor? It is wonderful for Android. It perfectly mirrors the phone screen and I can use either my Mac or the phone to operate it. Even typing on the keyboard.

👍 1
dotemacs 2021-06-08T09:39:57.109600Z

I just wish that it didn’t require cable connection from the machine to the phone. But I guess it uncovers a bigger issue, the quality of the Android emulator, especially when compared with what  has. I remember ten years ago there was a saying “Google hates developers” in the context of the quality/UX of the mobile emulator. And today, it’s like nobody cares at Google.

pez 2021-06-08T09:42:12.109800Z

Yes, the emulator is pretty horrible. Vysor makes it nice to develop for Android. 😃

pez 2021-06-08T12:20:53.110500Z

It seems I am running into this issue https://github.com/software-mansion/react-native-reanimated/issues/654 and that the fix is to upgrade react native and react navigation….

raspasov 2021-06-08T22:35:51.110900Z

@pez Which version of RN are you on?