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

Cannot read property 'split' of undefined #1580

Closed
liss21 opened this issue Nov 25, 2020 · 3 comments
Closed

Cannot read property 'split' of undefined #1580

liss21 opened this issue Nov 25, 2020 · 3 comments
Assignees
Labels
bug a bug in the software itself

Comments

@liss21
Copy link

liss21 commented Nov 25, 2020

Hey guys. I can`t install UBPorts to my Redmi 4X (2/16)

I tried UBPorts installer in Windows 8.1, Windows 7 and Lubuntu 20.04

  • Device: santoni
  • Channel: deb
  • Build:

Steps to reproduce

Install the installer via the deb package, with additional installation of dependencies. Launch, give the device to the installer, select the UBPorts edition, wait until the installer asks to go to recovery. It does not enter UBPorts recovery. Hanging on the screen with the Mi logo. If i boot TWRP using the fastboot, then the installer will continue exactly until the moment when it downloads all the necessary files.

Expected behavior

in theory, the installer should send the normal recovery, and after booting into it, it should transfer the files via ADB to the phone and install everything that is needed.

Actual behavior

As I said, UBPorts recovery does not work but hangs on the Mi logo. If you boot TWRP, then the installer continues and then displays the following message:

uncaught exception at uncaughtException: TypeError: Cannot read property 'split' of undefined
stack trace: TypeError: Cannot read property 'split' of undefined

Logfiles and additional information


liss@DNS:~/Downloads$ sudo ubports-installer 
info: Welcome to the UBports Installer version 0.8.0-beta!
info: device detected: santoni
info: preparing
info: checking previously downloaded firmware files
error: Error: uncaught exception at uncaughtException: TypeError: Cannot read property 'split' of undefined
stack trace: TypeError: Cannot read property 'split' of undefined
    at /opt/ubports-installer/resources/app.asar.unpacked/node_modules/promise-android-tools/lib/module.cjs:444:50
    at Array.forEach (<anonymous>)
    at Socket.<anonymous> (/opt/ubports-installer/resources/app.asar.unpacked/node_modules/promise-android-tools/lib/module.cjs:438:14)
    at Socket.emit (events.js:310:20)
    at addChunk (_stream_readable.js:286:12)
    at readableAddChunk (_stream_readable.js:268:9)
    at Socket.Readable.push (_stream_readable.js:209:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)
error: Error: systemimage: Error: {"error":{"code":1}}
stack trace: Error: {"error":{"code":1}}
    at ChildProcess.<anonymous> (/opt/ubports-installer/resources/app.asar.unpacked/node_modules/promise-android-tools/lib/module.cjs:426:17)
    at Object.onceWrapper (events.js:417:26)
    at ChildProcess.emit (events.js:322:22)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)`
@Flohack74 Flohack74 transferred this issue from ubports/ubuntu-touch Nov 25, 2020
@Flohack74
Copy link
Member

@NeoTheThird what do you think?

@liss21
Copy link
Author

liss21 commented Nov 25, 2020

Almost forgot. I was tried all versions, rc, devel. stable, edge. Now try boot Orangefox Recovery and installer didn`t give me error but stuck on "Prepairing system image" and loads my i3 by half at all cores :) About 40 minutes already....

@NeoTheThird NeoTheThird changed the title UBPorts installer won`t install recovery and OS to Redmi 4X Cannot read property 'split' of undefined Nov 30, 2020
@NeoTheThird NeoTheThird added the bug a bug in the software itself label Nov 30, 2020
@NeoTheThird
Copy link
Member

I'll have to trace back where this originalted, somewhere in the promise-android-tools source code

@NeoTheThird NeoTheThird self-assigned this Dec 1, 2020
NeoTheThird added a commit to ubports/promise-android-tools that referenced this issue Dec 1, 2020
NeoTheThird added a commit to ubports/promise-android-tools that referenced this issue Dec 3, 2020
* Make sure not to access non-existent properties on push progress as seen in ubports/ubports-installer#1580

* Handle locked error on set_active, ubports/ubports-installer#1556

* Bump version

* only generate coverage on linux

* Do not spawn a shell to avoid having to deal with fileguards, see ubports/ubports-installer#1575

* Increase timeout on platform test

* work around shebang

* Catch lock error on vollaphone

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in the software itself
Projects
None yet
Development

No branches or pull requests

3 participants