z------------- / CPod

(UNMAINTAINED) A simple, beautiful podcast app for Windows, macOS, and Linux.
Apache License 2.0
745 stars 75 forks source link

Segfault when clicking on 'Search' text input box #92

Open w1lford opened 6 years ago

w1lford commented 6 years ago

CPod version: CPod v1.25.7 Platform: Linux Mint x64 Description: When clicking on the text info box for CPod to search for a Podcast, CPod crashes with a segfault. Did the bug only start to occur after a CPod update? Version before, version after: Did not update CPod. Installed latest version from the Snap store. Steps to reproduce:

  1. Start CPod.
  2. Click on the Explore tab.
  3. Click on the 'Search' text input box Please also attach information that might help, e.g. screenshots of console log, if possible. Full console log:

no user settings file Checking for update Error: Error: ENOENT: no such file or directory, open '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:370:27 at Generator.next () From previous event: at AppImageUpdater.loadUpdateConfig (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:395:11) at Lazy.AppUpdater.configOnDisk.Lazy (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:132:43) at Lazy.get value [as value] (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/lazy-val/src/main.ts:18:23) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:281:46 at Generator.next () From previous event: at AppImageUpdater.doCheckForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:353:11) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:264:25 at Generator.next () at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5) From previous event: at AppImageUpdater._checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:307:11) at AppImageUpdater.checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:213:35) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:130:13) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:244:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:186:8) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:188:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Function.Module.runMain (module.js:683:10) at startup (bootstrap_node.js:196:16) at bootstrap_node.js:622:3 There was a problem updating the application { Error: ENOENT: no such file or directory, open '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:370:27 at Generator.next () From previous event: at AppImageUpdater.loadUpdateConfig (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:395:11) at Lazy.AppUpdater.configOnDisk.Lazy (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:132:43) at Lazy.get value [as value] (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/lazy-val/src/main.ts:18:23) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:281:46 at Generator.next () From previous event: at AppImageUpdater.doCheckForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:353:11) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:264:25 at Generator.next () at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5) From previous event: at AppImageUpdater._checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:307:11) at AppImageUpdater.checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:213:35) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:130:13) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:244:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:186:8) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:188:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Function.Module.runMain (module.js:683:10) at startup (bootstrap_node.js:196:16) at bootstrap_node.js:622:3 cause: { Error: ENOENT: no such file or directory, open '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' errno: -2, code: 'ENOENT', syscall: 'open', path: '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' }, isOperational: true, errno: -2, code: 'ENOENT', syscall: 'open', path: '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' } Unhandled rejection Error: ENOENT: no such file or directory, open '/snap/cumulonimbus/50/opt/CPod/resources/app-update.yml' at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:370:27 at Generator.next () From previous event: at AppImageUpdater.loadUpdateConfig (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:395:11) at Lazy.AppUpdater.configOnDisk.Lazy (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:132:43) at Lazy.get value [as value] (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/lazy-val/src/main.ts:18:23) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:281:46 at Generator.next () From previous event: at AppImageUpdater.doCheckForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:353:11) at /snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:264:25 at Generator.next () at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5) From previous event: at AppImageUpdater._checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:307:11) at AppImageUpdater.checkForUpdates (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:213:35) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:130:13) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/app.asar/main.js:244:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:186:8) at Object. (/snap/cumulonimbus/50/opt/CPod/resources/electron.asar/browser/init.js:188:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Function.Module.runMain (module.js:683:10) at startup (bootstrap_node.js:196:16) at bootstrap_node.js:622:3 Segmentation fault (core dumped)

w1lford commented 6 years ago

One additional data point: I cloned and built CPod directly from the source and I don't get a segfault when clicking the search bar. Perhaps it's an issue with the snap version?

z------------- commented 6 years ago

I haven't been able to reproduce. This looks like it could be related to #83, and that one was closed when the submitter downgraded to CPod v1.25.5. So it looks like this could be an Electron issue, since CPod v1.25.5 has Electron v2.0.0 while newer versions have v2.0.8. Could you try CPod v1.25.5 (not from source) and let me know if the issue persists? Thanks.

w1lford commented 6 years ago

I tried v1.25.5 (appimage variant) and everything worked normally.

z------------- commented 6 years ago

Here's a new (pre-)release (1.26.0) that downgrades to Electron v2.0.0 and adds features and fixes.

w1lford commented 6 years ago

The issue is resolved in this version. I installed the.deb package variant of it though. The issue may have something to do with Snap instead. EDIT: Although, I am getting other issues now. Clicking the search bar doesn't cause a segfault but no search results come up when I use it.

z------------- commented 6 years ago

That may be the case, but the only builds I produce are here on GitHub Releases and the Snap version is not supported.

Regarding the search issue, I am not able to reproduce it. Could you let me know: