Mike_da_Spike Posted October 20, 2021 Share Posted October 20, 2021 Hey Tom, Good work to migrate PinballX from .net 4 to .net5 64 bit ! I gave it a try on my normal PC and on my Cabinet. After install all is working fine (although I select not to install demo, I had demo's on it, but it showed all is working) But After I copied over my pinballx.ini Complete media dir (38 GB) and my databases. When I launch PBX .net5, it won't start. 06:43:12.01 20-10-2021: Error. Exiting 06:43:12.01 20-10-2021: 06:43:12.01 20-10-2021: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes') I cleared media dir (so having no media loading), but didn't fix it. Must be something in my database Maybe caused by the XML files we created with Database manager ? So also added my database file I hope you are able to reproduce it PinballX.ini log.txt Databases.zip Link to comment Share on other sites More sharing options...
scutters Posted October 20, 2021 Share Posted October 20, 2021 A couple of other small things i noticed with the log too, operating system isn't recognised; 06:43:10.78 20-10-2021: PinballX - Version 5.20 x64 06:43:10.80 20-10-2021: Unknown Operating System cpu cores / threads wrong; 06:43:11.69 20-10-2021: CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz 06:43:11.69 20-10-2021: 1 core, 1 thread And nothing to identify it as the '.PinballX net 5' version Sorry for jumping in your thread Mike but i thought these were low hangers that are worth mentioning for Tom when he looks at your problem. Btw, do you get the same with v5.22? Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 20, 2021 Author Share Posted October 20, 2021 7 minutes ago, scutters said: Sorry for jumping in your thread Mike but i thought these were low hangers that are worth mentioning for Tom when he looks at your problem. No problem mate. I can rename this topic to PBX .net 5 issues/bugs ? 8 minutes ago, scutters said: Btw, do you get the same with v5.22? No. Pbx5.22 working like a charm (see log file) log.txt Link to comment Share on other sites More sharing options...
scutters Posted October 20, 2021 Share Posted October 20, 2021 4 minutes ago, Mike_da_Spike said: No problem mate. I can rename this topic to PBX .net 5 issues/bugs ? I'd say so.. as the .net 5 version is a test version at the moment, keeps things together? 5 minutes ago, Mike_da_Spike said: No. Pbx5.22 working like a charm (see log file) Always use the latest version Mike! 1 Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 20, 2021 Author Share Posted October 20, 2021 43 minutes ago, scutters said: Always use the latest version Mike! Good one Scutters ! I used the first version, but same with .net 5 versopn 5.22 log.txt Edit : I thought you meant with the 5.22 version the version from .net4. That is working. Not the 5.22 from .net5 (Man, getting confused now ) 1 Link to comment Share on other sites More sharing options...
scutters Posted October 20, 2021 Share Posted October 20, 2021 Tom, Mikes issue is due to using unicode / alt code characters in the xml. I just tried with the sample databases for .net 5 v5.22 and as soon as I add them into the sample xml (table description field) i get the same error. Updated sample database xml attached that fails Visual Pinball.xml Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 21, 2021 Author Share Posted October 21, 2021 @Tom Speirs Is it an easy fix, so I can do some further testing ? Or will unicode not be supported in the .net5 test version ? Link to comment Share on other sites More sharing options...
Tom Speirs Posted October 21, 2021 Share Posted October 21, 2021 Thanks for testing. I will take a look but have you tried encoding the file as UTF-8? By default .net uses just UTF-8. Unicode is kind of an old thing now as far as I know and everything is UTF these days. Try getting a good text editor such as notepad++ and save it as UTF-8 and let me know how that goes. Tom. Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 21, 2021 Author Share Posted October 21, 2021 Thanks for your feedback Tom I did a quick test. Opened the original file with TextPad88 and save it as UTF-8 Same issue Also selected UTF-BOM (really don't know what that is (and UTF-8) But same issue Removed all my database files and just keep 1 for visual pinball (As I play around with a lot of filters and other types of XML), but same results after saving to UTF-8 Installed notepad++ and showed the file was indeed UTF-8 added for example my XML file as well log.txt Visual Pinball.xml Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 21, 2021 Author Share Posted October 21, 2021 OK. I think I need to go back to the drawing board with my XML I did some tests , and it is my XML file Sorry Tom for any issue I caused. That will be a weekend behind my keyboad Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 21, 2021 Author Share Posted October 21, 2021 Little bit further. I use multiple unicode in my XML file. Looks like some are working, but some not I use the list from here : Full Emoji List, v14.0 (unicode.org) Not sure if there is a way to have these character/symbols/emoji also have in UTF format Link to comment Share on other sites More sharing options...
Tom Speirs Posted October 23, 2021 Share Posted October 23, 2021 Thanks. Ill take a look soon. 2 Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 23, 2021 Author Share Posted October 23, 2021 2 hours ago, Tom Speirs said: Thanks. Ill take a look soon. Don't rush Tom, it is weekend and just a test version Link to comment Share on other sites More sharing options...
Tom Speirs Posted October 27, 2021 Share Posted October 27, 2021 ive had a chance to think about it but not looked yet. I've not researched but I wonder if Unicode is more of a proprietary Microsoft technology and therefore not available in .net 5/core which aim is to be cross platform and universal. Its not anything i have done here to break anything so I am thinking Unicode is not going to be on the table but maybe UTF-16 is the way forward here. Is UTf-16 an option, perhaps try? Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted October 27, 2021 Author Share Posted October 27, 2021 Hey Tom, Thanks for checking. I'm not a programmer, and not sure if utf-16 will work with the icons that people are using now. Is it easy for you to compile a .net5 version that supports utf-16 instead of utf-8 ? Will this not break the .net4 version of pbx ? Or dont you want the databases be compatible between the 2 version ? Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted November 1, 2021 Author Share Posted November 1, 2021 I thought I understand, UTF8-UTF16 and other stuff, but it really gave me a lot of headaches this weekend If I read all correctly UTF-8 should work with all the characters I used. Within game manager I added some characters : These are nicely translated to : description>250 cc ©(INDER 1992)</description> <description>Big Game Stern ���� (1980)</description> (see attached XML.) I'm able to reopen this Database as well with the correct format But launching PinballX.net5 it crashes still : 05:56:13.71 1-11-2021: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderReplacementFallback'. (Parameter 'bytes') 05:56:13.71 1-11-2021: at System.Text.Encoding.ThrowBytesOverflow() As it is working in game manager, I think you should not go the way to use utf-16, but checking why the buffer it too small for the higher numbers of the characters. #169(Copyright) is working, but #55369 (Palette) is crashing. Hope this will help Visual Pinball.xml log.txt 1 Link to comment Share on other sites More sharing options...
scutters Posted November 29, 2021 Share Posted November 29, 2021 Hi Tom, Just a quick note that the same error occurs in the .net 6 V5.23 version as Mike noted in the last post (with .net 5 v5.22), i.e. game manager will let you add characters and will convert them into entity codes in the database xml but PinballX cannot then open and will crash (if some double byte characters are used) Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted November 29, 2021 Author Share Posted November 29, 2021 same here as well. Just using the gamemanager.exe with the 2 test tables. Adding 2 characters (within game manager it is working. Writing and reading again), but within PinballX a buffer too small message log.txt Visual Pinball.xml Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 1, 2021 Author Share Posted December 1, 2021 Installation of PBX .net6 overwrites the icons in the windows startmenu (Settings, plugins and game list manager) As the program has another program UID, should it not be installed in a different folder in the startmenu ?? Link to comment Share on other sites More sharing options...
Tom Speirs Posted December 2, 2021 Share Posted December 2, 2021 Perhaps your right, but it was intentional to make things cleaner and tidier. Cheers. Tom 1 Link to comment Share on other sites More sharing options...
Tom Speirs Posted December 2, 2021 Share Posted December 2, 2021 On 11/29/2021 at 7:21 AM, scutters said: Hi Tom, Just a quick note that the same error occurs in the .net 6 V5.23 version as Mike noted in the last post (with .net 5 v5.22), i.e. game manager will let you add characters and will convert them into entity codes in the database xml but PinballX cannot then open and will crash (if some double byte characters are used) Fixed for next release. Thanks 1 1 Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 2, 2021 Author Share Posted December 2, 2021 2 hours ago, Tom Speirs said: Fixed for next release. Thanks Yup ! Your the man Tom, it is working ! Good job Only still installs in the same Start menu entry and overwrites the 'normal' PinbalLX game list manager, settings and plugins maybe you leave it as it was, and thats ok for me. Btw. did you remove the DOF plugin from the core installation ? If I have some time, I will update my cabinet and start some real testing, but this looks promising now ! Link to comment Share on other sites More sharing options...
Tom Speirs Posted December 2, 2021 Share Posted December 2, 2021 6 minutes ago, Mike_da_Spike said: Btw. did you remove the DOF plugin from the core installation ? Not intentionally although I don't think the DOF plugin was ever included in the install. I think it comes with DOF. Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted December 2, 2021 Author Share Posted December 2, 2021 3 minutes ago, Tom Speirs said: Not intentionally although I don't think the DOF plugin was ever included in the install. I think it comes with DOF. Argh ! damned you are right. I thought that PinbalLX had an initial version as well. Getting too old to remember all the stuff Link to comment Share on other sites More sharing options...
Tom Speirs Posted December 2, 2021 Share Posted December 2, 2021 On 10/20/2021 at 3:24 AM, scutters said: A couple of other small things i noticed with the log too, operating system isn't recognised; 06:43:10.78 20-10-2021: PinballX - Version 5.20 x64 06:43:10.80 20-10-2021: Unknown Operating System cpu cores / threads wrong; 06:43:11.69 20-10-2021: CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz 06:43:11.69 20-10-2021: 1 core, 1 thread And nothing to identify it as the '.PinballX net 5' version Sorry for jumping in your thread Mike but i thought these were low hangers that are worth mentioning for Tom when he looks at your problem. Btw, do you get the same with v5.22? Are the cores and os reporting working now? Link to comment Share on other sites More sharing options...
Recommended Posts