When launching 1.5.9, it often crashes with the following error:
{
msg: "Uncaught TypeError: Cannot read property 'length' of undefined",
url: '/opt/yakyak/resources/app/ui/models/conv.js',
lineNo: 42,
columnNo: 34,
error: TypeError: Cannot read property 'length' of undefined
at /opt/yakyak/resources/app/ui/models/conv.js:42:34
at add (/opt/yakyak/resources/app/ui/models/conv.js:49:9)
at Object._initFromConvStates (/opt/yakyak/resources/app/ui/models/conv.js:522:17)
at Object.init (/opt/yakyak/resources/app/ui/dispatcher.js:54:10)
at doAction (/opt/yakyak/resources/app/node_modules/trifl/lib/action.js:45:68)
at action (/opt/yakyak/resources/app/node_modules/trifl/lib/action.js:21:12)
at Object.init (/opt/yakyak/resources/app/ui/dispatcher.js:39:14)
at file:///opt/yakyak/resources/app/ui/app.js:207:23
at EventEmitter.<anonymous> (file:///opt/yakyak/resources/app/ui/app.js:105:16)
at EventEmitter.emit (events.js:223:5)
}
It does not seem to happen everytime.
I have the same error also
I'm getting this error every time I start
Every launch for me as well.
{
msg: "Uncaught TypeError: Cannot read property 'length' of undefined",
url: 'C:\\Program Files\\YakYak\\resources\\app\\ui\\models\\conv.js',
lineNo: 42,
columnNo: 34,
error: TypeError: Cannot read property 'length' of undefined
at C:\Program Files\YakYak\resources\app\ui\models\conv.js:42:34
at add (C:\Program Files\YakYak\resources\app\ui\models\conv.js:49:9)
at Object._initFromConvStates (C:\Program Files\YakYak\resources\app\ui\models\conv.js:522:17)
at Object.init (C:\Program Files\YakYak\resources\app\ui\dispatcher.js:54:10)
at doAction (C:\Program Files\YakYak\resources\app\node_modules\trifl\lib\action.js:45:68)
at action (C:\Program Files\YakYak\resources\app\node_modules\trifl\lib\action.js:21:12)
at Object.init (C:\Program Files\YakYak\resources\app\ui\dispatcher.js:39:14)
at file:///C:/Program%20Files/YakYak/resources/app/ui/app.js:207:23
at EventEmitter.<anonymous> (file:///C:/Program%20Files/YakYak/resources/app/ui/app.js:105:16)
at EventEmitter.emit (events.js:223:5)
}
I've been receiving the same error with the deb package. The Snap package works fine though, but I find deb packages launch faster so I tend to use those primarily.
Edit: nevermind it happens on Snap as well.
Same issue here on Windows 10.
Figured I would contribute mine as well, though it's the same error. Ditto on it being sporadic/not every time.
Specs:
Installation method: snap
version: 1.5.9
OS: Kubuntu 20.04
Error on YakYak window:
{
msg: "Uncaught TypeError: Cannot read property 'length' of undefined",
url: '/snap/yakyak/74/yakyak/resources/app/ui/models/conv.js',
lineNo: 42,
columnNo: 34,
error: TypeError: Cannot read property 'length' of undefined
at /snap/yakyak/74/yakyak/resources/app/ui/models/conv.js:42:34
at add (/snap/yakyak/74/yakyak/resources/app/ui/models/conv.js:49:9)
at Object._initFromConvStates (/snap/yakyak/74/yakyak/resources/app/ui/models/conv.js:522:17)
at Object.init (/snap/yakyak/74/yakyak/resources/app/ui/dispatcher.js:54:10)
at doAction (/snap/yakyak/74/yakyak/resources/app/node_modules/trifl/lib/action.js:45:68)
at action (/snap/yakyak/74/yakyak/resources/app/node_modules/trifl/lib/action.js:21:12)
at Object.init (/snap/yakyak/74/yakyak/resources/app/ui/dispatcher.js:39:14)
at file:///snap/yakyak/74/yakyak/resources/app/ui/app.js:207:23
at EventEmitter.<anonymous> (file:///snap/yakyak/74/yakyak/resources/app/ui/app.js:105:16)
at EventEmitter.emit (events.js:223:5)
}
Having the same issue, though I don't know where the log is to paste in entries (I've looked in ~/Library/Application Support/yakyak and in its subfolders, but I can't find anything relevant). :(
It says the following message very briefly in the top right corner:
Possible fatal error on main process, YakYak could stop working as expected.
After a few tries, it starts up.
Thanks :)
In almost a year of use, I realize that this program has a lot of instabilities…
Perhaps we need to seek alternatives? The fact that this primary issue isn't assigned yet is telling to the maintainer status on this project.
Perhaps we need to seek alternatives? The fact that this primary issue isn't assigned yet is telling to the maintainer status on this project.
I have, temporarily at least, switched to Rambox. I don't like it as well as yakyak, but it seems to work well enough. I'm open to other alternatives, though of course I'd very much prefer to have yakyak working again.
Okay, so I had a few minutes to look into this. I forced yakyak to work by doing a bit of a stupid workaround. In app/ui/model/conv.js, just after the 'event' variable is defined on line 32, I simply added this:
event = "";
This forces event to exist as an object (rather than being undefined), thus the call to check its length will be successful, allowing yakyak to run. I don't know what I've broken doing this (if anything), but it appears to work.
Thanks for the workaround @JonTabor that worked for me.
@JonTabor do you know the location of the conv.js file you mentioned for Windows users?
@JonTabor do you know the location of the
conv.jsfile you mentioned for Windows users?
I pulled the code from git, then built it using the steps in the README. It'll have to be built for Windows with the modification; I'm not near my machine right now, but I'll build it for you tomorrow (if I can; I'm on Linux, so I may not have all the right "bits" installed to build for Windows).
@orion4444 Alright, I was able to build the Windows version on my Linux system, but they are not small (like, 200+MB, larger than GitHub will let me post here). No idea if they work, though.
@orion4444
@JonTabor do you know the location of the
conv.jsfile you mentioned for Windows users?
I found conv.js at resources/app/ui/models in my YakYak program dir. Editing and relaunching seemed to work for me.
I changed line 42 to for (j = 0, len1 = (event?.length || 0); j < len1; j++) {.
I changed line 42 to
for (j = 0, len1 = (event?.length || 0); j < len1; j++) {.
That's a better fix.
I made this change to line 36 instead ({conversation, event = []} = conv);
I made this change to line 36 instead
({conversation, event = []} = conv);
This is the first one that's worked reliably for me. Thanks!
Problem still occurs after using the fix and starting a conversation with someone outside your conv list
Hi,
Same problem on Linux (LinuxMint 20). The PR #1245 fixed the problem.
Cheers.
...
Daniel
Problem still occurs after using the fix and starting a conversation with someone outside your conv list
I can confirm this.
Problem still occurs after using the fix and starting a conversation with someone outside your conv list
This is a different issue, but can be fixed with
if ((c != null && c.self_conversation_state ? c.self_conversation_state.view[0] : void 0) === 'ARCHIVED_VIEW') {
on line 30 of app/ui/views/convlist.js
I made this change to line 36 instead
({conversation, event = []} = conv);This is the first one that's worked reliably for me. Thanks!
This solved my issue on ubuntu 20.04
Still no way to fix the Windows version without recompiling the binary.
Is YakYak abandonware?
Is YakYak abandonware?
YakYak is open source software with an MIT license, meaning even if the current maintainers don't do things the way you like, anyone is free to take the code and make whatever modifications they wish and redistribute it
anyone is free to take the code and make whatever modifications they wish
This works unless pull requests are ignored :(
I cannot vouch for the validity/safety of the software, but I was able to install the Asar7z plugin for 7-Zip, open the app.asar package, find the file \ui\modelsconv.js, and make the change to line 42 as indicated above. This was for a Windows pre-built binary. Technically, I made the change to 1.5.10-beta (as I had hoped the latest might have already fixed this). I can confirm this finally made the issue go away.
Seems the modification to line 42 is the answer to life, the universe, and this pesky crash at launch. Thank you @kjg !
In the address you mention that file does not exist in xubuntu 20.04
/opt/yakyak/resources/app/ui/models/conv.js
Also not which of all the solutions in # 1234 is the correct one
I guess this is the correct one
I changed the line 42 a for (j = 0, len1 = (event?.length || 0); j < len1; j++) {
but what file.
Is YakYak abandonware?
Yes
I was having the same issue on my Fedora Linux computer and wanted to post my fix for it here. After doing a fresh install of 1.5.9 I manually edited the /opt/yakyak/resources/app/ui/models/conv.js file by changing line 36 from:
({conversation, event} = conv);
to:
({conversation, event = []} = conv);
I changed line 42 to
for (j = 0, len1 = (event?.length || 0); j < len1; j++) {.
Hello,
I'm new to this and am unable to find this on my mac, could you per change let me know where I can find it? The terminal line would be perfect.
Thank you !
conv.js keeps getting over-writen when running npm run deploy:win32-x64, so i cant get any of the changes into the final bianary.
I'm new to this and am unable to find this on my mac, could you per change let me know where I can find it? The terminal line would be perfect.
Thank you !
Hi there blondehouse--you have to:
Right-click on the YakYak app itself, then click Show Package Contents.
Double-click Contents > Resources > app > UI > models. The file conv.js is in there--you should be able to edit that with a text editor like BBEdit.
I recommend duplicating the file before you edit it. If your edit goes sideways, you have a backup copy.
Hope this helps.
ETA: for me the path to this same file, for purposes of editing via pico or similar in Terminal, is /Applications/YakYak.app/Contents/Resources/app/ui/models .
https://www.tc4shell.com/en/7zip/asar/
I found an asar extension for 7z so you don't need to recompile for windows.
I'm new to this and am unable to find this on my mac, could you per change let me know where I can find it? The terminal line would be perfect.
Thank you !Hi there blondehouse--you have to:
- Right-click on the YakYak app itself, then click Show Package Contents.
- Double-click Contents > Resources > app > UI > models. The file conv.js is in there--you should be able to edit that with a text editor like BBEdit.
I recommend duplicating the file before you edit it. If your edit goes sideways, you have a backup copy.
Hope this helps.
ETA: for me the path to this same file, for purposes of editing via pico or similar in Terminal, is /Applications/YakYak.app/Contents/Resources/app/ui/models .
Hi!
Thank you so much for your help! I tried this and the application would not start - saying that there was an error. I completely deleted the file, and reinstalled the latest beta. Now the file does not exist. Are you able to help at all?
Thank you!
I changed line 42 to for (j = 0, len1 = (event?.length || 0); j < len1; j++) {.
Confirmed this works for version 1.5.9 on October 24, 2020 after experiencing the issue of "possible fatal error in main process" when trying to start YakYak.
https://github.com/lividhen/yakyak/releases/tag/Final
For those who don't want to edit the file manually, I forked it, made the fix, then uploaded them as release.
https://github.com/lividhen/yakyak/releases/tag/Final
For those who don't want to edit the file manually, I forked it, made the fix, then uploaded them as release.
Hi! I downloaded the release and it still wont work for me. Any other ideas?
https://github.com/lividhen/yakyak/releases/tag/Final
For those who don't want to edit the file manually, I forked it, made the fix, then uploaded them as release.Hi! I downloaded the release and it still wont work for me. Any other ideas?
The mac one seems to not work, the windows one works for me, and i have not heard back on the linux one.
No offense to those who can get app to num the lines, but a 'change x to y' rather than just 'change line z to blahblahblah' would really help find the ORIGINAL line that needs changing.
Thanks.
No offense to those who can get app to num the lines, but a 'change x to y' rather than just 'change line z to blahblahblah' would really help find the ORIGINAL line that needs changing.
Thanks.
Most helpful comment
I made this change to line 36 instead
({conversation, event = []} = conv);