Coder Social home page Coder Social logo

Comments (11)

benyaminl avatar benyaminl commented on May 21, 2024 1

IMO, An error may occur if the other userChorme profile was previously installed.

Nope. I just follow the firefoxpwa runtime install, and it succeed, seems the extension installer need elevation maybe?
Manual install on native folder with administrator account works.

image

PS C:\Program Files\FirefoxPWA> firefoxpwa runtime install
15:24:15 [WARN] This will download the unmodified Mozilla Firefox and locally modify it
15:24:15 [WARN] Firefox is licensed under the Mozilla Public License 2.0
15:24:15 [WARN] Firefox is a trademark of the Mozilla Foundation in the U.S. and other countries
15:24:15 [WARN] This project is not affiliated with the Mozilla Foundation in any way
15:24:15 [WARN] By using this project you also agree to the Firefox Privacy Notice: https://www.mozilla.org/privacy/firefox/
15:24:15 [WARN] Check the Firefox website for more details: https://www.mozilla.org/firefox/
15:24:15 [INFO] Downloading the runtime archive
15:25:11 [INFO] Extracting the runtime archive

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 55526992 bytes (53 MiB)

Extracting archive: C:\Users\benli\AppData\Local\Temp\.tmp44kIks
--
Path = C:\Users\benli\AppData\Local\Temp\.tmp44kIks
Type = PE
Physical Size = 55526992
CPU = x86
Characteristics = Executable 32-bit NoRelocs NoLineNums NoLocalSyms
Created = 2018-08-31 05:18:33
Headers Size = 4096
Checksum = 55591982
Name = 7zS.sfx.exe
Image Size = 286720
Section Alignment = 4096
File Alignment = 512
Code Size = 69632
Initialized Data Size = 65536
Uninitialized Data Size = 147456
Linker Version = 6.0
OS Version = 4.0
Image Version = 0.0
Subsystem Version = 4.0
Subsystem = Windows GUI
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment =
{
FileVersion: 18.5.0.0
FileVersion: 18.05
ProductVersion: 18.5.0.0
ProductVersion: 18.05
CompanyName: Mozilla
FileDescription: Firefox
InternalName: 7zS.sfx
LegalCopyright: Mozilla
OriginalFilename: 7zS.sfx.exe
ProductName: Firefox
}
----
Path = [0]
Size = 55385472
Packed Size = 55385472
Virtual Size = 55385472
Offset = 131584
--
Path = [0]
Type = 7z
Offset = 81
Physical Size = 55385391
Headers Size = 1649
Method = LZMA:25 BCJ2
Solid = +
Blocks = 1

Everything is Ok

Folders: 10
Files: 85
Size:       215121837
Compressed: 55526992
15:25:14 [INFO] Copying the runtime
15:25:15 [INFO] Runtime installed!
PS C:\Program Files\FirefoxPWA>

Seems the profile isn't the same profile with running firefox? It's quite interesting anyway hemm..
Now it's working
image

Just probably the profile need to be the same so doesn't need constant relogin or because I use administrator account this lead to this problem?

from pwasforfirefox.

filips123 avatar filips123 commented on May 21, 2024 1

Well, that's interesting...

The elevation is only needed to run 7-Zip installer and is requested automatically. If you already had 7-Zip installed, it should install with normal permissions.

I had a similar problem that was caused by 7-Zip that printed something to stdout when extracting Firefox archive, causing the extension to receive broken data. However, this should be fixed, so I'm not sure why this happens...

The profile will be separate from your normal Firefox profile in any case, because FirefoxPWA needs some modifications that need to be in isolated profile. However, this also shouldn't break the installation.

from pwasforfirefox.

filips123 avatar filips123 commented on May 21, 2024

There is a log file at %APPDATA%\FirefoxPWA\firefoxpwa.log (Windows) or ~/.local/share/firefoxpwa/firefoxpwa.log (Linux).

from pwasforfirefox.

benyaminl avatar benyaminl commented on May 21, 2024
15:19:37 [WARN] This will download the unmodified Mozilla Firefox and locally modify it
15:19:37 [WARN] Firefox is licensed under the Mozilla Public License 2.0
15:19:37 [WARN] Firefox is a trademark of the Mozilla Foundation in the U.S. and other countries
15:19:37 [WARN] This project is not affiliated with the Mozilla Foundation in any way
15:19:37 [WARN] By using this project you also agree to the Firefox Privacy Notice: https://www.mozilla.org/privacy/firefox/
15:19:37 [WARN] Check the Firefox website for more details: https://www.mozilla.org/firefox/

Seems there're no error here. It's really strange :/
image

from pwasforfirefox.

black7375 avatar black7375 commented on May 21, 2024

IMO, An error may occur if the other userChorme profile was previously installed.

from pwasforfirefox.

benyaminl avatar benyaminl commented on May 21, 2024

Well, that's interesting...

The elevation is only needed to run 7-Zip installer and is requested automatically. If you already had 7-Zip installed, it should install with normal permissions.

I had a similar problem that was caused by 7-Zip that printed something to stdout when extracting Firefox archive, causing the extension to receive broken data. However, this should be fixed, so I'm not sure why this happens...

The profile will be separate from your normal Firefox profile in any case, because FirefoxPWA needs some modifications that need to be in isolated profile. However, this also shouldn't break the installation.

I observe that the profile, installer, etc is touching program files folder of firefox pwa, I just guessing this is the problem, and with admin user, no error raised. Anyway does the extension itself log debug data? Hmm...

from pwasforfirefox.

filips123 avatar filips123 commented on May 21, 2024

The directory where Firefox is installed (C:\Program Files\FirefoxPWA\runtime) is made writable by the main installer.

There are no other log files apart from firefoxpwa.log for the program, but the extension prints errors to the JS console. You can view it by inspecting the extension in about:debugging. However, that error is coming directly from Firefox Native Messaging API, so I don't think there will be anything useful in the JS console.

One other thing you can try is creating an empty DEBUG (with no extension) file in the same dir as the log file, which will set the program log level to info. Then, uninstall the runtime and try to install it again from the extension. Maybe you will get something useful in the log file.

It could be some problem with permissions, but it's interesting that no errors are logged and that it failes because of too long message.

from pwasforfirefox.

hoodmonalisa avatar hoodmonalisa commented on May 21, 2024

I'm also stuck with this problem.

from pwasforfirefox.

filips123 avatar filips123 commented on May 21, 2024

I released 0.3.0 which may fix this issue. I also added better error handling which can help with debugging if the issue is still not fixed.

To debug this issue:

  1. Make sure both the extension and native app are using 0.3.0.
  2. Create an empty DEBUG file in %APPDATA%\FirefoxPWA.
  3. Try to install the runtime from the extension.
  4. Now there should be three log files, firefoxpwa.log, firefoxpwa-stdout.log and firefoxpwa-stderr.log.
  5. Please upload them here.

from pwasforfirefox.

benyaminl avatar benyaminl commented on May 21, 2024

@filips123 Strangely, this version works as it intended, no error exhaust memory or such
image

firefoxpwa.log
firefoxpwa-stderr.log
firefoxpwa-stdout.log

I also don't see any error on those files, probably there're something wrong with the 0.2.1 version and you accidentally fixed it?

from pwasforfirefox.

filips123 avatar filips123 commented on May 21, 2024

Nice to see that is is fixed. Yeah, maybe there was some problem but I fixed it while improving error handling...

from pwasforfirefox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.