blinry / wikidata-cardgame

Use Wikidata to generate fact cards on arbitrary topics!
https://cardgame.morr.cc
64 stars 7 forks source link

Saving as PDF crashes Firefox under macOS #11

Open blinry opened 5 years ago

blinry commented 5 years ago

According to Kai, trying to save the page as a PDF in Firefox 65.0.1 under macOS 10.14.3 crashes the browser. Not sure what we could do about that. Fixing #3 might help.

EdJoPaTo commented 5 years ago

I tried to recreate it and it (sadly) worked. There is a pdf generated. In my case its 156kB in size and not openable. (Safari works, 150MB, just for comparison)

Crash report (I disabled all add-ons in order to get a cleaner crash report) ``` AdapterDeviceID: 0x3ea5 AdapterVendorID: 0x8086 Add-ons: de-DE%40dictionaries.addons.mozilla.org:2.0.6.1webext,fxmonitor%40mozilla.org:2.8,webcompat%40mozilla.org:3.0.1,formautofill%40mozilla.org:1.0,screenshots%40mozilla.org:35.0.0,webcompat-reporter%40mozilla.org:1.1.0 BuildID: 20190211233335 ContentSandboxCapable: 1 ContentSandboxLevel: 3 CrashTime: 1552040462 DOMIPCEnabled: 1 EventLoopNestingLevel: 1 FramePoisonBase: 9223372036600930304 FramePoisonSize: 4096 InstallTime: 1550162372 Notes: FP(D00-L1000-W00000000-T000) WR? WR- OMTP? OMTP+4 GL Layers? GL Context? GL Context+ GL Layers+ ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384} ProductName: Firefox ReleaseChannel: release SafeMode: 0 SecondsSinceLastCrash: 113 StartupCrash: 0 StartupTime: 1552040437 TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20190211233335","version":"65.0.1","vendor":"Mozilla","displayVersion":"65.0.1","platformVersion":"65.0.1","xpcomAbi":"x86_64-gcc3","updaterAvailable":true},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":16384,"virtualMaxMB":null,"cpu":{"count":8,"cores":4,"vendor":"GenuineIntel","family":6,"model":142,"stepping":10,"l2cacheKB":256,"l3cacheKB":8192,"speedMHz":2700,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2","hasAES"]},"os":{"name":"Darwin","version":"18.2.0","locale":"en-DE"},"hdd":{"profile":{"model":null,"revision":null},"binary":{"model":null,"revision":null},"system":{"model":null,"revision":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","adapters":[{"description":null,"vendorID":"0x8086","deviceID":"0x3ea5","subsysID":null,"RAM":null,"driver":null,"driverVersion":null,"driverDate":null,"GPUActive":true}],"monitors":[{"screenWidth":1680,"screenHeight":1050,"scale":2},{"screenWidth":2560,"screenHeight":1440,"scale":1}],"features":{"compositor":"opengl","gpuProcess":{"status":"unused"},"wrQualified":{"status":"blocked"},"webrender":{"status":"opt-in"}}},"appleModelId":"MacBookPro15,2"},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":4,"telemetryEnabled":false,"locale":"en-US","update":{"channel":"release","enabled":true,"autoDownload":false},"userPrefs":{"browser.cache.disk.capacity":1048576,"browser.search.region":"DE","browser.search.widget.inNavBar":false,"privacy.trackingprotection.enabled":true},"sandbox":{"effectiveContentProcessLevel":3},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":true,"defaultSearchEngine":"ddg","defaultSearchEngineData":{"name":"DuckDuckGo","loadPath":"jar:[app]/omni.ja!/ddg.xml","origin":"default","submissionURL":"https://duckduckgo.com/?q=&t=ffsb"}},"profile":{"creationDate":17742},"addons":{"activeAddons":{"formautofill@mozilla.org":{"version":"1.0","scope":1,"type":"extension","updateDay":17925,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Form Autofill","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"screenshots@mozilla.org":{"version":"35.0.0","scope":1,"type":"extension","updateDay":17925,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Take clips and screenshots from the Web and save them temporarily or permanently.","name":"Firefox Screenshots","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"webcompat-reporter@mozilla.org":{"version":"1.1.0","scope":1,"type":"extension","updateDay":17925,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Report site compatibility issues on webcompat.com","name":"WebCompat Reporter","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"fxmonitor@mozilla.org":{"version":"2.8","scope":1,"type":"extension","updateDay":17956,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Firefox Monitor","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17956,"signedState":3},"webcompat@mozilla.org":{"version":"3.0.1","scope":1,"type":"extension","updateDay":17956,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compat","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17956,"signedState":3}},"theme":{"id":"default-theme@mozilla.org","blocklisted":false,"description":"The default theme.","name":"Default","userDisabled":false,"appDisabled":false,"version":"","scope":1,"foreignInstall":false,"hasBinaryComponents":false,"installDay":0,"updateDay":0},"activePlugins":[],"activeGMPlugins":{"gmp-gmpopenh264":{"version":"1.7.1","userDisabled":false,"applyBackgroundUpdates":1},"gmp-widevinecdm":{"version":"4.10.1196.0","userDisabled":false,"applyBackgroundUpdates":1}},"persona":"default-theme@mozilla.org"},"experiments":{"pref-rollout-activity-stream-search-shortcuts-1507237":{"branch":"active","type":"normandy-prefrollout"},"rollout-monitor-v2-1505837":{"branch":"active","type":"normandy-prefrollout"},"prefflip-push-performance-1491171":{"branch":"control","type":"normandy-exp"}}} ThreadIdNameMapping: 6:"Gecko_IOThread",7:"JS Watchdog",15:"JS Helper",11:"JS Helper",10:"JS Helper",9:"JS Helper",13:"JS Helper",14:"JS Helper",8:"JS Helper",12:"JS Helper",16:"Timer",17:"Socket Thread",19:"Cache2 I/O",20:"Cookie",23:"GMPThread",24:"Worker Launcher",25:"Compositor",26:"ImgDecoder #1",27:"ImageIO",28:"IPDL Background",34:"DOM Worker",38:"StyleThread#3",36:"StyleThread#1",35:"StyleThread#0",40:"StyleThread#5",39:"StyleThread#4",37:"StyleThread#2",40:"ImageBridgeChild",43:"ProcessHangMon",46:"DataStorage",47:"URL Classifier",48:"Classifier Update",49:"DNS Resolver #1",50:"Cache I/O",50:"mozStorage #1",51:"mozStorage #2",51:"localStorage DB",52:"mozStorage #3",53:"mozStorage #4",54:"QuotaManager IO",55:"IndexedDB #1",56:"IndexedDB #2",60:"Lazy Idle",61:"SaveScripts",63:"StreamTrans #47",63:"mozStorage #5",64:"SSL Cert #1",65:"ImgDecoder #2",66:"ImgDecoder #3",69:"SSL Cert #2", Throttleable: 1 URL: https://cardgame.morr.cc/ UptimeTS: 25.07661533 Vendor: Mozilla Version: 65.0.1 useragent_locale: en-US This report also contains technical information about the state of the application when it crashed. ```

I do not see something useful in here that indicates whats wrong…

Also pretty printed the long stuff:

TelemetryEnvironment ```JSON { "build": { "applicationId": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", "applicationName": "Firefox", "architecture": "x86-64", "buildId": "20190211233335", "version": "65.0.1", "vendor": "Mozilla", "displayVersion": "65.0.1", "platformVersion": "65.0.1", "xpcomAbi": "x86_64-gcc3", "updaterAvailable": true }, "partner": { "distributionId": null, "distributionVersion": null, "partnerId": null, "distributor": null, "distributorChannel": null, "partnerNames": [ ] }, "system": { "memoryMB": 16384, "virtualMaxMB": null, "cpu": { "count": 8, "cores": 4, "vendor": "GenuineIntel", "family": 6, "model": 142, "stepping": 10, "l2cacheKB": 256, "l3cacheKB": 8192, "speedMHz": 2700, "extensions": [ "hasMMX", "hasSSE", "hasSSE2", "hasSSE3", "hasSSSE3", "hasSSE4_1", "hasSSE4_2", "hasAVX", "hasAVX2", "hasAES" ] }, "os": { "name": "Darwin", "version": "18.2.0", "locale": "en-DE" }, "hdd": { "profile": { "model": null, "revision": null }, "binary": { "model": null, "revision": null }, "system": { "model": null, "revision": null } }, "gfx": { "D2DEnabled": null, "DWriteEnabled": null, "ContentBackend": "Skia", "adapters": [ { "description": null, "vendorID": "0x8086", "deviceID": "0x3ea5", "subsysID": null, "RAM": null, "driver": null, "driverVersion": null, "driverDate": null, "GPUActive": true } ], "monitors": [ { "screenWidth": 1680, "screenHeight": 1050, "scale": 2 }, { "screenWidth": 2560, "screenHeight": 1440, "scale": 1 } ], "features": { "compositor": "opengl", "gpuProcess": { "status": "unused" }, "wrQualified": { "status": "blocked" }, "webrender": { "status": "opt-in" } } }, "appleModelId": "MacBookPro15,2" }, "settings": { "blocklistEnabled": true, "e10sEnabled": true, "e10sMultiProcesses": 4, "telemetryEnabled": false, "locale": "en-US", "update": { "channel": "release", "enabled": true, "autoDownload": false }, "userPrefs": { "browser.cache.disk.capacity": 1048576, "browser.search.region": "DE", "browser.search.widget.inNavBar": false, "privacy.trackingprotection.enabled": true }, "sandbox": { "effectiveContentProcessLevel": 3 }, "addonCompatibilityCheckEnabled": true, "isDefaultBrowser": true, "defaultSearchEngine": "ddg", "defaultSearchEngineData": { "name": "DuckDuckGo", "loadPath": "jar:[app]\/omni.ja!\/ddg.xml", "origin": "default", "submissionURL": "https:\/\/duckduckgo.com\/?q=&t=ffsb" } }, "profile": { "creationDate": 17742 }, "addons": { "activeAddons": { "formautofill@mozilla.org": { "version": "1.0", "scope": 1, "type": "extension", "updateDay": 17925, "isSystem": true, "isWebExtension": true, "multiprocessCompatible": true, "blocklisted": false, "description": null, "name": "Form Autofill", "userDisabled": false, "appDisabled": false, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 17716 }, "screenshots@mozilla.org": { "version": "35.0.0", "scope": 1, "type": "extension", "updateDay": 17925, "isSystem": true, "isWebExtension": true, "multiprocessCompatible": true, "blocklisted": false, "description": "Take clips and screenshots from the Web and save them temporarily or permanently.", "name": "Firefox Screenshots", "userDisabled": false, "appDisabled": false, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 17716 }, "webcompat-reporter@mozilla.org": { "version": "1.1.0", "scope": 1, "type": "extension", "updateDay": 17925, "isSystem": true, "isWebExtension": true, "multiprocessCompatible": true, "blocklisted": false, "description": "Report site compatibility issues on webcompat.com", "name": "WebCompat Reporter", "userDisabled": false, "appDisabled": false, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 17716 }, "fxmonitor@mozilla.org": { "version": "2.8", "scope": 1, "type": "extension", "updateDay": 17956, "isSystem": true, "isWebExtension": true, "multiprocessCompatible": true, "blocklisted": false, "description": null, "name": "Firefox Monitor", "userDisabled": false, "appDisabled": false, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 17956, "signedState": 3 }, "webcompat@mozilla.org": { "version": "3.0.1", "scope": 1, "type": "extension", "updateDay": 17956, "isSystem": true, "isWebExtension": true, "multiprocessCompatible": true, "blocklisted": false, "description": "Urgent post-release fixes for web compatibility.", "name": "Web Compat", "userDisabled": false, "appDisabled": false, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 17956, "signedState": 3 } }, "theme": { "id": "default-theme@mozilla.org", "blocklisted": false, "description": "The default theme.", "name": "Default", "userDisabled": false, "appDisabled": false, "version": "", "scope": 1, "foreignInstall": false, "hasBinaryComponents": false, "installDay": 0, "updateDay": 0 }, "activePlugins": [ ], "activeGMPlugins": { "gmp-gmpopenh264": { "version": "1.7.1", "userDisabled": false, "applyBackgroundUpdates": 1 }, "gmp-widevinecdm": { "version": "4.10.1196.0", "userDisabled": false, "applyBackgroundUpdates": 1 } }, "persona": "default-theme@mozilla.org" }, "experiments": { "pref-rollout-activity-stream-search-shortcuts-1507237": { "branch": "active", "type": "normandy-prefrollout" }, "rollout-monitor-v2-1505837": { "branch": "active", "type": "normandy-prefrollout" }, "prefflip-push-performance-1491171": { "branch": "control", "type": "normandy-exp" } } } ```
ThreadIdNameMapping ``` 6:"Gecko_IOThread" 7:"JS Watchdog" 15:"JS Helper" 11:"JS Helper" 10:"JS Helper" 9:"JS Helper" 13:"JS Helper" 14:"JS Helper" 8:"JS Helper" 12:"JS Helper" 16:"Timer" 17:"Socket Thread" 19:"Cache2 I/O" 20:"Cookie" 23:"GMPThread" 24:"Worker Launcher" 25:"Compositor" 26:"ImgDecoder #1" 27:"ImageIO" 28:"IPDL Background" 34:"DOM Worker" 38:"StyleThread#3" 36:"StyleThread#1" 35:"StyleThread#0" 40:"StyleThread#5" 39:"StyleThread#4" 37:"StyleThread#2" 40:"ImageBridgeChild" 43:"ProcessHangMon" 46:"DataStorage" 47:"URL Classifier" 48:"Classifier Update" 49:"DNS Resolver #1" 50:"Cache I/O" 50:"mozStorage #1" 51:"mozStorage #2" 51:"localStorage DB" 52:"mozStorage #3" 53:"mozStorage #4" 54:"QuotaManager IO" 55:"IndexedDB #1" 56:"IndexedDB #2" 60:"Lazy Idle" 61:"SaveScripts" 63:"StreamTrans #47" 63:"mozStorage #5" 64:"SSL Cert #1" 65:"ImgDecoder #2" 66:"ImgDecoder #3" 69:"SSL Cert #2" ```
EdJoPaTo commented 5 years ago

Does not crash anymore (probably due to #3) but the result is not that satisfying…

screenshot 2019-03-08 at 19 18 25
EdJoPaTo commented 5 years ago

It crashes again 🤷🏾‍♀️