Error message: Error while upadting settings: [WidgetGtk] Size should be non-negative

I get the above error. I numbered the lines of the commandline session. In line 3 one can see that sizeY has a negative value “-1”. In line 6 I correct that value to 0, shown in line 9. line 12 starts xibo-player. It starts and shows up on the display, but line 17 shows the above error. Line 18 cancels xibo-player. line 21/23 show that sizeY has again a negative value of “-1”. I’ve also seen a value of “-7” then xibo-player refuses to start. Those values also show up in the profile settings of the used display.

Xibo-player and xibo-cms run on the same server (ubuntu 18.04.04).

Hope that helps

1	b106364@linux-dmcl:~/snap/xibo-player/common$ grep \- playerSettings.xml 
 2	<?xml version="1.0" encoding="utf-8"?>
 3	<sizeX>0</sizeX><sizeY>-1</sizeY><offsetX>0</offsetX><offsetY>0</offsetY><logLevel>error</logLevel><displayName>Linux-dmcl</displayName><preventSleep>true</preventSleep><statsEnabled>true</statsEnabled><screenshotSize>200</screenshotSize><collectInterval>60</collectInterval><downloadEndWindow>00:00</downloadEndWindow><xmrNetworkAddress>tcp://linux-dmcl.kreis-steinfurt.lokal:9505</xmrNetworkAddress><embeddedServerPort>9696</embeddedServerPort><maxLogFilesUploads>3</maxLogFilesUploads><screenshotInterval>0</screenshotInterval><statusLayoutUpdate>false</statusLayoutUpdate><downloadStartWindow>00:00</downloadStartWindow><screenshotRequested>false</screenshotRequested><shellCommandsEnabled>true</shellCommandsEnabled><maxConcurrentDownloads>2</maxConcurrentDownloads><modifiedLayoutsEnabled>false</modifiedLayoutsEnabled>
 4	b106364@linux-dmcl:~/snap/xibo-player/common$ echo correction sizeY
 5	correction sizeY
 6	b106364@linux-dmcl:~/snap/xibo-player/common$ mc -e playerSettings.xml 
   
 7	b106364@linux-dmcl:~/snap/xibo-player/common$ grep \- playerSettings.xml 
 8	<?xml version="1.0" encoding="utf-8"?>
 9	<sizeX>0</sizeX><sizeY>0</sizeY><offsetX>0</offsetX><offsetY>0</offsetY><logLevel>error</logLevel><displayName>Linux-dmcl</displayName><preventSleep>true</preventSleep><statsEnabled>true</statsEnabled><screenshotSize>200</screenshotSize><collectInterval>60</collectInterval><downloadEndWindow>00:00</downloadEndWindow><xmrNetworkAddress>tcp://linux-dmcl.kreis-steinfurt.lokal:9505</xmrNetworkAddress><embeddedServerPort>9696</embeddedServerPort><maxLogFilesUploads>3</maxLogFilesUploads><screenshotInterval>0</screenshotInterval><statusLayoutUpdate>false</statusLayoutUpdate><downloadStartWindow>00:00</downloadStartWindow><screenshotRequested>false</screenshotRequested><shellCommandsEnabled>true</shellCommandsEnabled><maxConcurrentDownloads>2</maxConcurrentDownloads><modifiedLayoutsEnabled>false</modifiedLayoutsEnabled>
10	b106364@linux-dmcl:~/snap/xibo-player/common$ echo sizeY = 0
11	sizeY = 0
12	b106364@linux-dmcl:~/snap/xibo-player/common$ xibo-player
13	[15:24:07.464] [28685] [error]: [DBus] ScreenSaver wont'be suspended: org.freedesktop.DBus.Error.NoMemory
14	[15:24:07.465] [28685] [info]: [XiboApp] http://127.0.0.1:9696/
   
15	(player:28685): GLib-GIO-CRITICAL **: 15:24:07.573: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
16	[15:24:07.801] [28687] [error]: [WebServer] Read Error: Connection reset by peer
17	[15:24:07.816] [28685] [error]: [XiboApp] Error while upadting settings: [WidgetGtk] Size should be non-negative
18	^C
19	b106364@linux-dmcl:~/snap/xibo-player/common$ echo sizeY corrupted
20	sizeY corrupted
21	b106364@linux-dmcl:~/snap/xibo-player/common$ grep \- playerSettings.xml 
22	<?xml version="1.0" encoding="utf-8"?>
23	<sizeX>0</sizeX><sizeY>-1</sizeY><offsetX>0</offsetX><offsetY>0</offsetY><logLevel>error</logLevel><displayName>Linux-dmcl</displayName><preventSleep>true</preventSleep><statsEnabled>true</statsEnabled><screenshotSize>200</screenshotSize><collectInterval>60</collectInterval><downloadEndWindow>00:00</downloadEndWindow><xmrNetworkAddress>tcp://linux-dmcl.kreis-steinfurt.lokal:9505</xmrNetworkAddress><embeddedServerPort>9696</embeddedServerPort><maxLogFilesUploads>3</maxLogFilesUploads><screenshotInterval>0</screenshotInterval><statusLayoutUpdate>false</statusLayoutUpdate><downloadStartWindow>00:00</downloadStartWindow><screenshotRequested>false</screenshotRequested><shellCommandsEnabled>true</shellCommandsEnabled><maxConcurrentDownloads>2</maxConcurrentDownloads><modifiedLayoutsEnabled>false</modifiedLayoutsEnabled>
24	b106364@linux-dmcl:~/snap/xibo-player/common$ exit
25	exit
26	Skript wurde beendet, die Datei ist typescript
27	b106364@linux-dmcl:~/snap/xibo-player/common$ mc -e typescript 
   
28	b106364@linux-dmcl:~/snap/xibo-player/common$

Hi!

These settings are pushed from the CMS to the Player, not from the Player to the CMS - are you sure you don’t have it set that way in your Linux Display Settings profile in the CMS?

I thought the CMS protected against having -1 in those fields, but perhaps not! Can you confirm?

playersettings.xml contains “-1” and has a modification date of 2020-02-17 15:24
Looking into the display profile: it contains “-1” for the height parameter; I correct that to 0;
starting xibo-player results in:

b106364@linux-dmcl:~/snap/xibo-player/common$ xibo-player
[07:21:57.734] [12254] [error]: [DBus] ScreenSaver wont'be suspended: org.freedesktop.DBus.Error.NoReply
[07:21:57.756] [12254] [info]: [XiboApp] http://127.0.0.1:9696/
[07:21:57.765] [12254] [error]: [XiboApp] Error while upadting settings: [WidgetGtk] Size should be non-negative
[07:21:58.068] [12254] [error]: [Main] [WidgetGtk] Scale factor should be positive
Player exited with code 0
[07:22:01.181] [12279] [error]: [DBus] ScreenSaver wont'be suspended: org.freedesktop.DBus.Error.NoReply
[07:22:01.182] [12279] [info]: [XiboApp] http://127.0.0.1:9696/
[07:22:01.187] [12279] [error]: [XiboApp] Error while upadting settings: [WidgetGtk] Size should be non-negative
[07:22:01.265] [12279] [error]: [Main] [WidgetGtk] Scale factor should be positive
Player exited with code 0
[07:22:04.380] [12297] [error]: [DBus] ScreenSaver wont'be suspended: org.freedesktop.DBus.Error.NoReply
[07:22:04.381] [12297] [info]: [XiboApp] http://127.0.0.1:9696/
[07:22:04.386] [12297] [error]: [XiboApp] Error while upadting settings: [WidgetGtk] Size should be non-negative
[07:22:04.466] [12297] [error]: [Main] [WidgetGtk] Scale factor should be positive
Player exited with code 0
^C

player exits immediately and is restarted by the watchdog, until I cancel it. playersettings.xml is not modified. the profile contains again “-1” for the height.

Tried a second time, same result: playersettings.xml is not modified, the profile is. I correct the profile,
moved playersettings.xml to something completely different and restarted xibo-player

b106364@linux-dmcl:~/snap/xibo-player/common$ xibo-player &
[7] 14641
b106364@linux-dmcl:~/snap/xibo-player/common$ [07:52:16.548] [14748] [error]: [DBus] ScreenSaver wont'be suspended: org.freedesktop.DBus.Error.NoReply
[07:52:16.549] [14748] [info]: [XiboApp] http://127.0.0.1:1234/
[07:52:16.554] [14748] [debug]: [XiboApp] Player settings updated
[07:52:16.631] [14763] [debug]: [CollectionInterval] Started
[07:52:16.843] [14763] [debug]: [XMDS::RegisterDisplay] Success
[07:52:17.229] [14763] [debug]: [XMDS::Schedule] Received
[07:52:17.229] [14763] [debug]: [XMDS::RequiredFiles] Received
[07:52:17.564] [14778] [debug]: [2.html] Downloaded
[07:52:17.615] [14780] [debug]: [1.html] Downloaded
[07:52:17.618] [14782] [debug]: [22.html] Downloaded
[07:52:17.665] [14784] [debug]: [136.html] Downloaded
[07:52:17.733] [14786] [debug]: [133.html] Downloaded
[07:52:18.629] [14790] [debug]: [XMDS::MediaInventory] Updated
[07:52:18.654] [14792] [debug]: [131.html] Downloaded
[07:52:19.608] [14798] [debug]: [17.html] Downloaded
[07:52:19.766] [14763] [debug]: [XMDS::SubmitLogs] Submitted
[07:52:19.791] [14801] [debug]: [XMDS::MediaInventory] Updated

(player:14748): GLib-GIO-CRITICAL **: 07:56:16.599: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

It needs 4 minutes from the last debug information to filling the display (?). playersettings.xml is created and contains “0” for all size values. The profile settings stay on 0 as well.

Thank you for the detailed report.

I have put in an improvement to ignore negative values in size X/Y so that it is not possible to get stuck in this loop.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.

The Xibo Community site uses cookies. What are cookies?