Comments (9)
Please provide a stack trace
from urho.
@migueldeicaza looks like it caused by overflow of StringHash.Code field (it should be uint instead of int) because now for that specific class (ConstraintGear2D) the StringHash LookupStringHash returns hash with a negative big code.
from urho.
I've just checked - ConstraintGear2D::GetTypeStatic() returns 4159594590 (almost twice larger than Int32.MaxValue).
Same crash happens for several types (samples).
from urho.
I am confused, can you produce a small reproduction test case?
from urho.
@migueldeicaza
um...
just execute this in C#: (Samples project, Program.cs)
var valueMono = ConstraintGear2D.TypeStatic.Code;
valueMono is -135372706
same code in C++
auto valueCpp = ConstraintGear2D::GetTypeStatic();
valueCpp is 4159594590
but they should be the same. that's because of int type of Code field in StringHash instead of uint (used in C++ version).
from urho.
They are internally the same value. Both -135372706 and 4159594590 are the same bit pattern (0xf7ee605e).
So the question is: how do I reproduce the crash, not how do I reproduce the two values rendering differently.
from urho.
Oh, you are right, they are the same. let me collect the stacktrace.
from urho.
I've filed an issue - #54
from urho.
closing with #54 with fix 85b3fc0 fix is verified.
from urho.
Related Issues (20)
- Dependency injection for Application HOT 2
- Red/Blue color reversal with .png files on iOS
- Textures get deleted unintendedly
- Showing UrhoSurface shows status bar on iOS
- Question about left hand coordinates HOT 2
- Visual Studio 2019 Community and Xamarin + Urho -- Could not find resource
- urho Binding xamarin forms WPF
- Urho3D view is wrong size with iOS 14 HOT 2
- Provide Nuget Packages for .NET Core 3.1 of UrhoSharp.WinForms HOT 6
- UrhoSharp on UWP Xamarin Forms - Disposes when you Navigate to new Page
- Linux support
- Cannot Build UrhoSharp - Build Instructions seem broken
- License is ambiguous
- How to setup the UrhoSharp engine to render on a live wallpaper on Xamarin Android platform ?
- How to update with the latest 3D Engine version?
- Urho.Forms.UrhoSurface.OnDestroy(); Crash
- Inverse Kinematic functionality missing
- Placing an item on the wall with UrhoSharp
- MAUI Support
- UnhandledException Not Firing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urho.