documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

Document not openable because of an error in DoctRenderer

Open metaxy opened this issue 5 years ago • 1 comments

Nextcloud version: 18.0.1 on php 7.4

Community Document Server: 0.1.5

ONLYOFFICE: 4.1.4

We were editing a docx document. Somewhere in middle where not able to open it anymore. In the console log this error was thrown:

sdk-all.js:6227 Uncaught TypeError: Cannot read property 'b8d' of undefined
    at dc.nb.BG (sdk-all.js:6227)
    at dq.Xg (sdk-all.js:7004)
    at Pa.D3d (sdk-all-min.js:615)
    at aE.ab.ETc (sdk-all-min.js:619)
    at aE.ab.r_b (sdk-all-min.js:618)
    at Ia.Xzb (sdk-all-min.js:916)
    at Object.aaf (sdk-all-min.js:391)
    at Ia.Xzb (sdk-all-min.js:916)
    at Ia.njd (sdk-all-min.js:915)
    at Object.osa (sdk-all.js:4755)

in this code in index.php/apps/documentserver_community/3rdparty/onlyoffice/documentserver/sdkjs/word/sdk-all.js

 nb.prototype.BG = function() {
        this.bb && (this.bb.ey.b8d(),
        this.bb.kd.Z7a(Kl))
    }
    ;

Later in the nextcloud logs the following thing we have:

{
	"content": {
		"timestamp": "2020-03-12T07:45:06.446Z",
		"host": "********",
		"service": "nextcloud",
		"attributes": {
			"app": "documentserver_community",
			"method": "",
			"Message": "change_code: a?this.Nb.splice(d+1,this.Nb[0]-d):this.Nb[0]!==d+1&&0!==a&&(this.Nb.splice(d+2,this.Nb[0]-d-1),this.Nb[0]=d+1)}0===a&&this.Nb[0]!==d+1&&(this.Nb.splice(d+1,0,this.Nb.length-d-1),this.Nb[0]=d+1);c=1+this.Nb[0]+this.Nb[d+1]+2*a;this.Nb[c+0]=0;this.Nb[c+1]=0;return 0!==d||0!==a?this.Nb[c-1]:0};nb.prototype.saa=function(d,a,c,e){d=this.lxb(d,a);this.Nb[d+0]=c;this.Nb[d+1]=e};nb.prototype.qYb=function(d,a,c){this.Nb[this.lxb(d,a)+1]=c};nb.prototype.BG=function(){this.bb&&(this.bb.ey.b8d(),this.bb.kd.Z7a(Kl))};\nchange: Uncaught TypeError: Cannot read property 'b8d' of undefined\nDoctRenderer:<result><error index=\"2569\" /></result>\n",
			"level": 3,
			"userAgent": "--",
			"version": "18.0.1.3",
			"Code": 0,
			"url": "--",
			"Exception": "OCA\\DocumentServer\\Document\\DocumentConversionException",
			"reqId": "jiCS4rcd60kafJpgvQai",
			"Trace": [
				{
					"args": [
						"/tmp/oc_tmp_w6aN3K-.xml"
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/DocumentConverter.php",
					"line": 123,
					"function": "run",
					"type": "->",
					"class": "OCA\\DocumentServer\\Document\\ConverterBinary"
				},
				{
					"args": [
						{
							"__class__": "OCA\\DocumentServer\\Document\\ConvertCommand"
						}
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/DocumentConverter.php",
					"line": 78,
					"function": "runCommand",
					"type": "->",
					"class": "OCA\\DocumentServer\\DocumentConverter"
				},
				{
					"args": [
						"*** sensitive parameter replaced ***",
						[
							"78;AgAAADEA//8BAEtSmb0B6AIAhwAAAAUAAACHAAAAhwAAAIkAAAAWAgAAFgIAABwAAAA1AC4ANAAuADIALgA0ADYALgBAAEAAUgBlAHYA",
							"37;DAAAADIAXwA2ADkAMwAxAAMAAwACAAAAAAYAAAA0ADAANwAAAA==",
							"28;DAAAADIAXwA2ADkAMwAxAAcAAwAEAAAAAAAAAA==",
							"28;DAAAADIAXwA2ADkAMwAxAAUAAwAEAAAAAAAAAA==",
							"34;DAAAADIAXwA2ADkAMwAxABgAAwACAAAABgAAADYANAA4AA==",
							"32;DAAAADIAXwA2ADkAMwAxAAcAAwAAAAAA8GATAAAAAAA=",
							"78;AgAAADEA//8BAEtSmb0B6AIAhwAAAAEAAACIAAAAhwAAAIkAAAAWAgAAFgIAABwAAAA1AC4ANAAuADIALgA0ADYALgBAAEAAUgBlAHYA",
							"32;DAAAADIAXwA2ADkAMwAxAAcAAwAAAAAAAAAAAPBgEwA=",
							"78;AgAAADEA//8BAEtSmb0B6AIAhwAAAAQAAACJAAAAhwAAAIkAAAAWAgAAFgIAABwAAAA1AC4ANAAuADIALgA0ADYALgBAAEAAUgBlAHYA",
							"32;CAAAADEAMwA1ADUAAgAcAAEAAAAAAAAABAAAAAAAAAA=",
							"64;CAAAADEAMwA1ADMAAQADAAIAAAACAAAADAAAADIAXwA2ADkAMwA0AAMAAAAMAAAAMgBfADYAOQAzADMAAAAAAA==",
							"68;DAAAADIAXwA2ADkAMwAxAAIAAwACAAAAAAAAAAwAAAAyAF8ANgA5ADMANAAAAAAADAAAADIAXwA2ADkAMwAzAAAAAAA=",
							"38;AgAAADIAAgACAAEAAABEAAAADAAAADIAXwA2ADkAMwAxAAAAAAA="
						],
						"/var/www/vhosts/cloud.ecg.berlin/cloud_data/appdata_oc4pco3qef9h/documentserver_community/doc_1002224652/saved.docx",
						"docx"
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/Document/DocumentStore.php",
					"line": 151,
					"function": "saveChanges",
					"type": "->",
					"class": "OCA\\DocumentServer\\DocumentConverter"
				},
				{
					"args": [
						"*** sensitive parameters replaced ***"
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/LocalAppData.php",
					"line": 100,
					"function": "OCA\\DocumentServer\\Document\\{closure}",
					"type": "->",
					"class": "OCA\\DocumentServer\\Document\\DocumentStore"
				},
				{
					"args": [
						{
							"__class__": "OC\\Files\\SimpleFS\\SimpleFolder"
						},
						{
							"__class__": "Closure"
						}
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/Document/DocumentStore.php",
					"line": 164,
					"function": "getReadWriteLocalPath",
					"type": "->",
					"class": "OCA\\DocumentServer\\LocalAppData"
				},
				{
					"args": [
						1002224652,
						[
							{
								"__class__": "OCA\\DocumentServer\\Document\\Change"
							},
							{
								"__class__": "OCA\\DocumentServer\\Document\\Change"
							},
							{
								"__class__": "OCA\\DocumentServer\\Document\\Change"
							},
							…4271 times the same…
						]
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/Document/SaveHandler.php",
					"line": 56,
					"function": "saveChanges",
					"type": "->",
					"class": "OCA\\DocumentServer\\Document\\DocumentStore"
				},
				{
					"args": [
						1002224652
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php",
					"line": 69,
					"function": "flushChanges",
					"type": "->",
					"class": "OCA\\DocumentServer\\Document\\SaveHandler"
				},
				{
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/lib/public/BackgroundJob/Job.php",
					"line": 79,
					"function": "run",
					"type": "->",
					"class": "OCA\\DocumentServer\\BackgroundJob\\Cleanup"
				},
				{
					"args": [
						{
							"__class__": "OC\\BackgroundJob\\JobList"
						},
						{
							"__class__": "OC\\Log"
						}
					],
					"file": "/var/www/vhosts/cloud.ecg.berlin/cloud/cron.php",
					"line": 125,
					"function": "execute",
					"type": "->",
					"class": "OCP\\BackgroundJob\\Job"
				}
			],
			"Line": 64,
			"CustomMessage": "Error while applying changes for document 1002224652",
			"time": "2020-03-12T07:45:06+00:00",
			"user": "--",
			"File": "/var/www/vhosts/cloud.ecg.berlin/cloud/apps/documentserver_community/lib/Document/ConverterBinary.php",
			"remoteAddr": ""
		}
	}
}

metaxy avatar Mar 12 '20 08:03 metaxy

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Apr 15 '24 03:04 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Jun 17 '24 00:06 github-actions[bot]