[COMPASS-7267] Compass crashing on Ubuntu Created: 27/Sep/23  Updated: 10/Oct/23  Resolved: 27/Sep/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: 1.40.0
Fix Version/s: No version

Type: Bug Priority: Blocker - P1
Reporter: Mohammed Khateeb Kamran Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ubuntu 22.04.3 LTS
node.js / npm versions: node v20.7.0; npm 10.1.0
Compass: 1.40.0
Additional info:


Attachments: PNG File image-2023-09-27-13-58-36-700.png    
Issue Links:
Related
related to COMPASS-7283 Compass window turns white few second... Closed
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Compass is crashing while opening in Ubuntu

Please be sure to attach relevant logs with any sensitive data redacted.

Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at WebFrameMain.send (node:electron/js2c/browser_init:2:94495)
    at WebContents.send (node:electron/js2c/browser_init:2:79721)
    at /usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:107063
    at Array.forEach (<anonymous>)
    at t.broadcast (/usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:107021)
    at /usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:19083
    at _._callOnPreferencesChanged (/usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:18464)
    at _._afterPreferencesUpdate (/usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:16974)
    at _.savePreferences (/usr/lib/mongodb-compass/resources/app.asar/build/main.js:2:16810)
    at async xe.setupAIAccess (/usr/lib/mongodb-compass/resources/app.asar/build/959.js:1:29190)

Steps to Reproduce

Install Compass according to the instructions: https://www.mongodb.com/docs/compass/master/install/

Open it.

Expected Results

Not crash

Actual Results

App is crashing

Additional Notes

None



 Comments   
Comment by Rhys Howell [ 10/Oct/23 ]

kkamran@cinedigm.com Apologies, looks like this was caused by an electron bug, unrelated to COMPASS-7269. We're working on publishing a fix currently, if you like you can try out the beta with the fix already: https://github.com/mongodb-js/compass/releases/tag/v1.40.3-beta.4 It will land in 1.40.3

Comment by Mohammed Khateeb Kamran [ 10/Oct/23 ]

rhys.howell@mongodb.com I tried with v1.40.2 and this bug still exists. I don't think it is linked to the other one as this seems to be a GUI related bug.

Comment by Rhys Howell [ 27/Sep/23 ]

Hi kkamran@cinedigm.com  - we've fixed this in https://jira.mongodb.org/browse/COMPASS-7269 which is released in 1.40.2 - can you update and give it another try? Thanks for reporting the issue! Apologies for the inconvenience.

Comment by Mohammed Khateeb Kamran [ 27/Sep/23 ]

leroux.bodenstein@mongodb.com I ctually removed v1.40.0 and installed v.1.39.3 and it was working properly.

Comment by Mohammed Khateeb Kamran [ 27/Sep/23 ]

leroux.bodenstein@mongodb.com This is the file contents:

{   "id": "General",   "lastKnownVersion": "1.39.3",   "showedNetworkOptIn": true,   "currentUserId": "b96e243a-1aa4-4d58-82b4-54d9aa958673",   "agreedToLicense": false,   "networkTraffic": true,   "enableMaps": true,   "trackErrors": false,   "enableFeedbackPanel": true,   "trackUsageStatistics": true,   "autoUpdates": true,   "indexDDL": false,   "showAutoUpdateBanner": false,   "queryBuilder": true,   "showExplainPlanTab": false,   "singleDocumentCrud": false,   "serverStats": false,   "chartView": false,   "authMongodb": true,   "authKerberos": true,   "authLdap": true,   "authX509": false,   "sslUnvalidated": true,   "sslServer": true,   "sslAll": true,   "telemetryAnonymousId": "b96e243a-1aa4-4d58-82b4-54d9aa958673",   "theme": "DARK" }
Comment by David Terrey [ 27/Sep/23 ]

We've got the same issue on Windows today. We found the error to be the

{{"cloudFeatureRolloutAccess": {     "GEN_AI_COMPASS": false   } }}}

field being in the General.json file, making the json malformed. We fixed it by removing it.

Just FYI!

Comment by Le Roux Bodenstein [ 27/Sep/23 ]

Hi Mohammed

Thanks for filing this issue. Could you do us a favour and attach a copy of your compass preferences file? It should be at "~/.config/MongoDB Compass/AppPreferences/General.json".

Was this the first time you installed compass on this machine? If not, which version were you running before?

Comment by PM Bot [ 27/Sep/23 ]

Hello kkamran@cinedigm.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:45:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.