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

Fix for not being able to install app on specific Tizen TVs #1669

Merged
merged 8 commits into from
Sep 17, 2024

Conversation

justinasRm
Copy link
Contributor

@justinasRm justinasRm commented Aug 29, 2024

Description

Couldn't install the app on Tizen TV(label TV5).

Related issues

Npm releases

n/a

@justinasRm justinasRm self-assigned this Aug 29, 2024
@justinasRm justinasRm marked this pull request as draft August 29, 2024 07:18
@justinasRm justinasRm added this to the 1.2 milestone Aug 29, 2024
@Marius456 Marius456 added the e2e label Aug 29, 2024
@justinasRm justinasRm marked this pull request as ready for review September 10, 2024 05:31
@Marius456 Marius456 added e2e and removed e2e labels Sep 10, 2024
@Marius456 Marius456 modified the milestones: 1.2, 1.3 Sep 10, 2024
@pauliusguzas
Copy link
Collaborator

pauliusguzas commented Sep 10, 2024

watch still fails on install

pauliusguzas@MBP-de-Flexn template-starter % npx rnv run -p tizenwatch -t 192.168.1.31

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ 🚀 v:1.1.0-rc.1 | renative.org | 9/10/2024, 4:00:26 PM          │
│ $ rnv run -p tizenwatch -t 192.168.1.31                         │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-rn-web (../engine-rn-web)
task: ○ run ↺1
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Current app config: template
task: ✔ app configure
info: ../../node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]
info: ../../node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
task: ✔ project configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺1
task: ✔ sdk configure
task: ✔ platform configure
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" security-profiles list -n RNVanillaCert
warn: ○ configure: AssetSources is specified as {{resolvePackage(@flexn/assets-renative-outline)}}/assets. But path ../../node_modules/@flexn/assets-renative-outline/assets/tizenwatch was not found.
warn: ○ configure: Your app is missing assets at ./appConfigs/base,./appConfigs/template.
task: ✔ configure
info: Your tizenwatch devServer at port 8090 is not running. Starting it up for you...
info: Your tizenwatch devServerHost 127.0.0.1 at port 8090 is not running. Starting it up for you...
┌─────────────────────────────────────────────────────────────────┐
│ ⚠ BUNDLER STARTED | 9/10/2024, 4:00:29 PM | [email protected]      │
│ $ rnv run -p tizenwatch -t 192.168.1.31                         │
├─────────────────────────────────────────────────────────────────┤
│ Project: @rnv/[email protected]                       │
│ Workspace: rnv                                                  │
│ Platform (-p): tizenwatch                                       │
│ Engine: @rnv/engine-rn-web                                      │
│ App Config (-c): template                                       │
│ Build Scheme (-s): debug                                        │
│ Target (-t): 192.168.1.31                                       │
│ Supported Platforms: ios, android, androidtv, firetv, androidwear, web, tizen, tvos, webos, macos, tizenwatch, kaios, chromecast, linux, windows
│ Env Info: darwin | x64 | node v18.18.0                          │
│ Executed Time: 0h:0m:3s:431ms                                   │
│ warn: ○ configure: AssetSources is specified as {{resolvePackage(@flexn/assets-renative-outline)}}/assets. But path ../../node_modules/@flexn/assets-renative-outline/assets/tizenwatch was not found.
│ warn: ○ configure: Your app is missing assets at ./appConfigs/base,./appConfigs/template.
│ Project location: ./platformBuilds/template_tizenwatch          │
└─────────────────────────────────────────────────────────────────┘
warn: ○ run: You are missing chii. You can install via npm i -g chii) Trying to use weinre next
warn: ○ run: You are missing weinre. Skipping debug. install via npm i -g weinre
(node:93277) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:93277) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

Compiled successfully!

You can now view @rnv/template-starter in the browser.

  Local:            http://localhost:8090
  On Your Network:  http://192.168.1.33:8090

Note that the development build is not optimized.
To create a production build, use npm run build.

assets by path static/ 3.48 MiB
  asset static/js/bundle.js 3.17 MiB [emitted] (name: main) 1 related asset
  asset static/media/Inter-Light.58a136ec3193fa8a63e5.ttf 303 KiB [emitted] [immutable] [from: appConfigs/base/fonts/Inter-Light.ttf] (auxiliary name: main)
  asset static/media/logo.63d54a55b067ffc3e842.png 12.1 KiB [emitted] [immutable] [from: platformAssets/runtime/logo.png] (auxiliary name: main)
asset index.html 1.9 KiB [emitted]
asset asset-manifest.json 356 bytes [emitted]
cached modules 2.65 MiB (javascript) 303 KiB (asset) 28.8 KiB (runtime) [cached] 671 modules
modules by layer 2.01 KiB (javascript) 12.1 KiB (asset)
  ./platformAssets/runtime/fontManager.web.js 1.97 KiB [built]
  ./platformAssets/runtime/logo.png 42 bytes (javascript) 12.1 KiB (asset) [built]
webpack 5.94.0 compiled successfully in 1385 ms
No issues found.
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/sdb" devices
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/sdb" devices
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" build-web -- "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch" -out "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/intermediate"
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" package -- "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/intermediate" -s RNVanillaCert -t wgt -o "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output"
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" uninstall -p cHIP2fIRQZ -t SM-R500
✖ FAILED: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" install -- "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output" -n RNVanillaWatch.wgt -t SM-R500
error: ⨯ ○ run: COMMAND:

"/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" install -- "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output" -n RNVanillaWatch.wgt -t SM-R500

FAILED with ERROR:

__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1368]ms
Failed to install Tizen application.
Total time: 00:00:03.710

Error: Command failed with exit code 1: "/Users/pauliusguzas/tizen-studio/tools/ide/bin/tizen" install -- "/Users/pauliusguzas/Desktop/renative/renative/packages/template-starter/platformBuilds/template_tizenwatch/output" -n RNVanillaWatch.wgt -t SM-R500
path is /home/owner/share/tmp/sdk_tools/tmp/RNVanillaWatch.wgt
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[start] val[install]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[10]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[13]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[16]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[18]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[21]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[install_percent] val[24]
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[error] val[-12] error message: :Non trusted certificate is used. Register valid certificate:<-32>
__return_cb req_id[1] pkg_type[wgt] pkgid[cHIP2fIRQZ] key[end] val[fail]
processing result : Check certificate error [-12] failed
spend time for pkgcmd is [1368]ms

Failed to install Tizen application.
Total time: 00:00:03.710
    at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)


warn: ○ run: There is no target connected! Let's try to launch it. "rnv target launch -p tizenwatch -t 192.168.1.31"
✖ FAILED: /Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli launch --name 192.168.1.31
error: ⨯ ○ run: The VM "192.168.1.31" does not exist.
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" list-vm
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/sdb" devices
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n T-8.0-x86_64
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n T-samsung-7.0-x86
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n W-6.5-circle-x86
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n W-7.0-circle-x86
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n M-7.0-x86
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n M-6.5-x86
✔ Executing: "/Users/pauliusguzas/tizen-studio/tools/emulator/bin/em-cli" detail -n T-8.0-x86
? What emulator would you like to launch? (Use arrow keys)
❯ W-6.5-circle-x86
  W-7.0-circle-x86
  192.168.1.31:26101  	device    	SM-R500
pauliusguzas@MBP-de-Flexn template-starter %

the tv which didn't have this issue before is not affected

@pauliusguzas
Copy link
Collaborator

Same issue on tizenwatch

Copy link
Collaborator

@pauliusguzas pauliusguzas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tizen TV is fixed, tizenwatch needs seperate ticket

@pauliusguzas pauliusguzas added e2e and removed e2e labels Sep 13, 2024
@pauliusguzas pauliusguzas added e2e and removed e2e labels Sep 16, 2024
@justinasRm justinasRm merged commit 8d2c43b into main Sep 17, 2024
13 checks passed
@justinasRm justinasRm deleted the fix/tizen-cant-install-app branch September 17, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants