Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking breaks release (TypeInitializationException) #88

Closed
BlockyTheDev opened this issue Apr 29, 2023 · 3 comments
Closed

Linking breaks release (TypeInitializationException) #88

BlockyTheDev opened this issue Apr 29, 2023 · 3 comments
Labels
type::bug Something isn't working

Comments

@BlockyTheDev
Copy link

BlockyTheDev commented Apr 29, 2023

In the last beta release the sending of files over udp (ethernet cable) is not working. I press send, select the file and then select my device in the menu, there comes the message that it is waiting for acceptance and at the same time there is an error message "TypeInitialization _ Type, Cache`2". I think it has to do with the change from #87 based on my last feature request.

For further information I am also available on Discord (jo#1081) in German language.

@ShortDevelopment
Copy link
Member

ShortDevelopment commented Apr 30, 2023

The current master branch has no issues.
It seems like the optimisations (illink) applied during release builds break the app.
This also happens while receiving.

@ShortDevelopment ShortDevelopment added the type::bug Something isn't working label Apr 30, 2023
@ShortDevelopment ShortDevelopment changed the title Sending files not working over udp Linking breaks release (TypeInitializationException) Apr 30, 2023
@ShortDevelopment
Copy link
Member

ShortDevelopment commented Apr 30, 2023

System.TypeInitializationException: TypeInitialization_Type, Cache`1
 ---> System.TypeInitializationException: TypeInitialization_Type, Cache`1
 ---> System.InvalidOperationException: Can't find constructor for type 'Bond.Expressions.TaggedParser`1[Bond.Protocols.CompactBinaryReader`1[Bond.IO.Unsafe.InputBuffer]]' with either (System.Type) or (System.Type, Bond.Expressions.PayloadBondedFactory) signature.
   at Bond.Expressions.ParserFactory`1.Cache`1[[Bond.Protocols.CompactBinaryReader`1[[Bond.IO.Unsafe.InputBuffer, Bond.IO, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]], Bond, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286],[System.Type, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..cctor()
   Exception_EndOfInnerExceptionStack
   at Bond.Expressions.ParserFactory`1[[Bond.Protocols.CompactBinaryReader`1[[Bond.IO.Unsafe.InputBuffer, Bond.IO, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]], Bond, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]].Create[Type](Type , PayloadBondedFactory )
   at Bond.Expressions.ParserFactory`1[[Bond.Protocols.CompactBinaryReader`1[[Bond.IO.Unsafe.InputBuffer, Bond.IO, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]], Bond, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]].Create[Type](Type )
   at Bond.Deserializer`1[[Bond.Protocols.CompactBinaryReader`1[[Bond.IO.Unsafe.InputBuffer, Bond.IO, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]], Bond, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]]..ctor(Type )
   at Bond.Deserialize`1.Cache`1[[ShortDev.Microsoft.ConnectedDevices.Serialization.ValueSet, ShortDev.Microsoft.ConnectedDevices, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null],[Bond.Protocols.CompactBinaryReader`1[[Bond.IO.Unsafe.InputBuffer, Bond.IO, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]], Bond, Version=10.0.0.100, Culture=neutral, PublicKeyToken=87e9ead25a117286]]..cctor()
   Exception_EndOfInnerExceptionStack
   at ShortDev.Microsoft.ConnectedDevices.Serialization.ValueSet.Parse(EndianReader )
   at ShortDev.Microsoft.ConnectedDevices.NearShare.Internal.NearShareHandshakeApp.HandleMessage(CdpMessage )
   at ShortDev.Microsoft.ConnectedDevices.CdpChannel.HandleMessageAsync(CdpMessage )
   at ShortDev.Microsoft.ConnectedDevices.CdpSession.HandleSession(CommonHeader , EndianReader )
   at ShortDev.Microsoft.ConnectedDevices.CdpSession.HandleMessage(CdpSocket , CommonHeader , EndianReader )
   at ShortDev.Microsoft.ConnectedDevices.ConnectedDevicesPlatform.<>c__DisplayClass27_0.<ReceiveLoop>b__0()

See microsoft/bond#1188

@ShortDevelopment
Copy link
Member

Workaround: 4e5ddd9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants