Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

Test version of pinballX .net 6 bug thread


Mike_da_Spike

Recommended Posts

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

  • Mike_da_Spike changed the title to pinballx .net 5 Wont launch after copying database files and media

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

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

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! :D

  • Like 1
Link to comment
Share on other sites

43 minutes ago, scutters said:

Always use the latest version Mike! :D

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 :wacko:

  • Haha 1
Link to comment
Share on other sites

  • Mike_da_Spike changed the title to Test version of pinballX .net 5 bug thread

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

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 
image.png.b53489535c48578fa8f6ae4d0edb2905.png

added for example my XML file as well 

log.txt Visual Pinball.xml

Link to comment
Share on other sites

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

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

I thought I understand, UTF8-UTF16 and other stuff, but it really gave me a lot of headaches this weekend :wacko:

If I read all correctly UTF-8 should work with all the characters I used. 
Within game manager I added some characters :

image.png.d14e56bb850d3785aeedc21c3689fb53.png

 

These are nicely translated to :

description>250 cc &#169;(INDER 1992)</description>

<description>Big Game Stern &#55356;&#57256;&#55357;&#56586; (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

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

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

  • Mike_da_Spike changed the title to Test version of pinballX .net 6 bug thread

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 ??

image.png.ba9751aae390159e3af808b37ad31204.png

Link to comment
Share on other sites

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

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...