The latest SVN bugs thread

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: The latest SVN bugs thread

Post by Nadro »

MRTs disable blending in OpenGL driver for SceneNodes. It's related to render state cache and should be fix soon.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
HellFlip
Posts: 4
Joined: Mon Aug 20, 2012 9:57 pm

Re: The latest SVN bugs thread

Post by HellFlip »

Quick one (on SVN Irr 1.9) : CIrrDeviceSDL.cpp: Compile fails because the template min_() cannot be resolved for the type to use (reproduced on VC2008). Casting the SEvent to int resolves the issue :

Code: Select all

const int numAxes = core::min_(SDL_JoystickNumAxes(joystick), (int)SEvent::SJoystickEvent::NUMBER_OF_AXES);
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: The latest SVN bugs thread

Post by CuteAlien »

@HellFlip: Thanks for reporting. I fixed it in the 1.8 release branch - will get into svn trunk when we merge next time.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: The latest SVN bugs thread

Post by thanhle »

In 1.81
getHorizontalAngle() return the wrong angle when the two vector is the same. e.g. it will return X = 270 degree.

Regards
thanh
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: The latest SVN bugs thread

Post by hendu »

Confirmed that last one, but I'm not sure if the "is vector all zero" check should be done in the function. Afterall, if the position is the same, why should your app ask for the difference?

Code: Select all

#include <irrlicht.h>
 
using namespace irr;
using namespace core;
 
int main() {
 
    vector3df a(0,0,0);
    vector3df angle = a.getHorizontalAngle();
 
    printf("%f %f %f\n", angle.X, angle.Y, angle.Z);
 
    return 0;
}
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: The latest SVN bugs thread

Post by thanhle »

Hi Hendu,
The position of the vector is generated and compared against a static vector.
Regards
thanh
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: The latest SVN bugs thread

Post by Nadro »

Nadro wrote:MRTs disable blending in OpenGL driver for SceneNodes.
Fixed in trunk.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: The latest SVN bugs thread

Post by christianclavet »

Hi, I'm trying to compile the Shader branch. But got some linker error while attempting compilation.

I'm trying to compile the shader branch on Windows 7 using MSVC Express 2008. SVN should be SVN4673 Jan28 2014

Here is the report from the compiler (some comments are in french):
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Édition des liens en cours...
1> Création de la bibliothèque ..\..\lib\Win32-visualstudio\Irrlicht.lib et de l'objet ..\..\lib\Win32-visualstudio\Irrlicht.exp
1>COpenGLDriver.obj : error LNK2019: symbole externe non résolu "public: __thiscall irr::video::CVertexDescriptor::CVertexDescriptor(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int)" (??0CVertexDescriptor@video@irr@@QAE@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@2@I@Z) référencé dans la fonction "public: __thiscall irr::video::COpenGLVertexDescriptor::COpenGLVertexDescriptor(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int,unsigned int)" (??0COpenGLVertexDescriptor@video@irr@@QAE@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@2@II@Z)
1>CNullDriver.obj : error LNK2001: symbole externe non résolu "public: __thiscall irr::video::CVertexDescriptor::CVertexDescriptor(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int)" (??0CVertexDescriptor@video@irr@@QAE@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@2@I@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: __thiscall irr::video::CVertexDescriptor::CVertexDescriptor(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int)" (??0CVertexDescriptor@video@irr@@QAE@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@2@I@Z)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getID(void)const " (?getID@CVertexDescriptor@video@irr@@UBEIXZ)
1>CD3D9Driver.obj : error LNK2019: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getID(void)const " (?getID@CVertexDescriptor@video@irr@@UBEIXZ) référencé dans la fonction "public: virtual void * __thiscall irr::video::CD3D9MaterialRenderer::`scalar deleting destructor'(unsigned int)" (??_GCD3D9MaterialRenderer@video@irr@@UAEPAXI@Z)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::core::string<char,class irr::core::irrAllocator<char> > const & __thiscall irr::video::CVertexDescriptor::getName(void)const " (?getName@CVertexDescriptor@video@irr@@UBEABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@XZ)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::core::string<char,class irr::core::irrAllocator<char> > const & __thiscall irr::video::CVertexDescriptor::getName(void)const " (?getName@CVertexDescriptor@video@irr@@UBEABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@XZ)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getVertexSize(void)const " (?getVertexSize@CVertexDescriptor@video@irr@@UBEIXZ)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getVertexSize(void)const " (?getVertexSize@CVertexDescriptor@video@irr@@UBEIXZ)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttribute(unsigned int)const " (?getAttribute@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@I@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttribute(unsigned int)const " (?getAttribute@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@I@Z)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttributeByName(class irr::core::string<char,class irr::core::irrAllocator<char> > const &)const " (?getAttributeByName@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttributeByName(class irr::core::string<char,class irr::core::irrAllocator<char> > const &)const " (?getAttributeByName@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@ABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@@Z)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttributeBySemantic(enum irr::video::E_VERTEX_ATTRIBUTE_SEMANTIC)const " (?getAttributeBySemantic@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@W4E_VERTEX_ATTRIBUTE_SEMANTIC@23@@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual class irr::video::IVertexAttribute * __thiscall irr::video::CVertexDescriptor::getAttributeBySemantic(enum irr::video::E_VERTEX_ATTRIBUTE_SEMANTIC)const " (?getAttributeBySemantic@CVertexDescriptor@video@irr@@UBEPAVIVertexAttribute@23@W4E_VERTEX_ATTRIBUTE_SEMANTIC@23@@Z)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getAttributeCount(void)const " (?getAttributeCount@CVertexDescriptor@video@irr@@UBEIXZ)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual unsigned int __thiscall irr::video::CVertexDescriptor::getAttributeCount(void)const " (?getAttributeCount@CVertexDescriptor@video@irr@@UBEIXZ)
1>COpenGLDriver.obj : error LNK2001: symbole externe non résolu "public: virtual void __thiscall irr::video::CVertexDescriptor::setID(unsigned int)" (?setID@CVertexDescriptor@video@irr@@UAEXI@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual void __thiscall irr::video::CVertexDescriptor::setID(unsigned int)" (?setID@CVertexDescriptor@video@irr@@UAEXI@Z)
1>COpenGLDriver.obj : error LNK2019: symbole externe non résolu "public: virtual __thiscall irr::video::CVertexDescriptor::~CVertexDescriptor(void)" (??1CVertexDescriptor@video@irr@@UAE@XZ) référencé dans la fonction "public: virtual __thiscall irr::video::COpenGLVertexDescriptor::~COpenGLVertexDescriptor(void)" (??1COpenGLVertexDescriptor@video@irr@@UAE@XZ)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual __thiscall irr::video::CVertexDescriptor::~CVertexDescriptor(void)" (??1CVertexDescriptor@video@irr@@UAE@XZ)
1>COpenGLDriver.obj : error LNK2019: symbole externe non résolu "public: virtual bool __thiscall irr::video::CVertexDescriptor::addAttribute(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int,enum irr::video::E_VERTEX_ATTRIBUTE_SEMANTIC,enum irr::video::E_VERTEX_ATTRIBUTE_TYPE,unsigned int)" (?addAttribute@CVertexDescriptor@video@irr@@UAE_NABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@IW4E_VERTEX_ATTRIBUTE_SEMANTIC@23@W4E_VERTEX_ATTRIBUTE_TYPE@23@I@Z) référencé dans la fonction "public: virtual bool __thiscall irr::video::COpenGLVertexDescriptor::addAttribute(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int,enum irr::video::E_VERTEX_ATTRIBUTE_SEMANTIC,enum irr::video::E_VERTEX_ATTRIBUTE_TYPE,unsigned int)" (?addAttribute@COpenGLVertexDescriptor@video@irr@@UAE_NABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@IW4E_VERTEX_ATTRIBUTE_SEMANTIC@23@W4E_VERTEX_ATTRIBUTE_TYPE@23@I@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual bool __thiscall irr::video::CVertexDescriptor::addAttribute(class irr::core::string<char,class irr::core::irrAllocator<char> > const &,unsigned int,enum irr::video::E_VERTEX_ATTRIBUTE_SEMANTIC,enum irr::video::E_VERTEX_ATTRIBUTE_TYPE,unsigned int)" (?addAttribute@CVertexDescriptor@video@irr@@UAE_NABV?$string@DV?$irrAllocator@D@core@irr@@@core@3@IW4E_VERTEX_ATTRIBUTE_SEMANTIC@23@W4E_VERTEX_ATTRIBUTE_TYPE@23@I@Z)
1>COpenGLDriver.obj : error LNK2019: symbole externe non résolu "public: virtual bool __thiscall irr::video::CVertexDescriptor::removeAttribute(unsigned int)" (?removeAttribute@CVertexDescriptor@video@irr@@UAE_NI@Z) référencé dans la fonction "public: virtual bool __thiscall irr::video::COpenGLVertexDescriptor::removeAttribute(unsigned int)" (?removeAttribute@COpenGLVertexDescriptor@video@irr@@UAE_NI@Z)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual bool __thiscall irr::video::CVertexDescriptor::removeAttribute(unsigned int)" (?removeAttribute@CVertexDescriptor@video@irr@@UAE_NI@Z)
1>COpenGLDriver.obj : error LNK2019: symbole externe non résolu "public: virtual void __thiscall irr::video::CVertexDescriptor::removeAllAttribute(void)" (?removeAllAttribute@CVertexDescriptor@video@irr@@UAEXXZ) référencé dans la fonction "public: virtual void __thiscall irr::video::COpenGLVertexDescriptor::removeAllAttribute(void)" (?removeAllAttribute@COpenGLVertexDescriptor@video@irr@@UAEXXZ)
1>CD3D9Driver.obj : error LNK2001: symbole externe non résolu "public: virtual void __thiscall irr::video::CVertexDescriptor::removeAllAttribute(void)" (?removeAllAttribute@CVertexDescriptor@video@irr@@UAEXXZ)
1>CIrrDeviceWin32.obj : error LNK2019: symbole externe non résolu "class irr::video::IVideoDriver * __cdecl irr::video::createDirectX11Driver(struct irr::SIrrlichtCreationParameters const &,class irr::io::IFileSystem *,struct HWND__ *)" (?createDirectX11Driver@video@irr@@YAPAVIVideoDriver@12@ABUSIrrlichtCreationParameters@2@PAVIFileSystem@io@2@PAUHWND__@@@Z) référencé dans la fonction "private: void __thiscall irr::CIrrDeviceWin32::createDriver(void)" (?createDriver@CIrrDeviceWin32@irr@@AAEXXZ)
1>..\..\bin\Win32-visualstudio\Irrlicht.dll : fatal error LNK1120: 14 externes non résolus
1>Le journal de génération a été enregistré à l'emplacement "file://c:\Users\Public\Projets\Irrlicht-Trunk\branches\shader-pipeline\source\Irrlicht\obj\Debug\BuildLog.htm"
1>Irrlicht - 29 erreur(s), 1 avertissement(s)
========== Régénération globale : 0 a réussi, 1 a échoué, 0 a été ignoré ==========
Am I missing something on my side to have theses linker errors?
I would like to check it, because I need:
- Hardware skinning (Seen some work done there)
- Better/Faster GL implementation
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: The latest SVN bugs thread

Post by Nadro »

It looks like VS2008 project doesn't include required src files eg. CVertexDescriptor.cpp. VS2012 project is up to date, so you can try this one, or add required files to VS2008.

BTW. If you really doesn't need flexible vertex format you should stay with trunk or ogl-es branch, because shader-pipeline is in experimental phase. OpenGL perf should be mostly the same like in trunk or even lower for scene nodes calculated/animated in realtime on CPU instead of GPU eg. OcttreeSceneNode, SkinnedMesh calculated on CPU etc. Shader-pipeline doesn't support compressed textures and cube maps too.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: The latest SVN bugs thread

Post by christianclavet »

Hi!
cube maps too.
Humm! This one is also one that I wanted, I was thinking it was implemented there first. Thanks for the details Nadro!
EDIT: Compiled trunk with MSVC 2008. All compiled correctly. I'll switch during the year to MSVC 2013.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: The latest SVN bugs thread

Post by christianclavet »

Hi, Just updated the Trunk SVN today, and it won't compile in
c:\users\public\projets\irrlicht-trunk\trunk\source\irrlicht\CAttributeImpl.h(2047) : error C3861: 'strtoull' : identifier not found
Looking at the log, the changes occured in SVN 4799 by Cutealien: "Make CUserPointerAttribute::setString work on 64-bit systems. Should also still work on 32-bit (I hope, don't have a 32-bit environment right now).".

strtoull is used on C++(2011) version only. So my MSVC 2008 or other pre-2011 compiler will fail compile there.

EDIT: Got another strange problem. I replaced my 1.8.0 release, with the trunk and got a strange problem with the main windows scaling.
If I scale the window manually, all is ok, but if I press the "maximize" icon, got a invalid pointer crash in my application. The windows is scaling properly but Irrlicht crash before it can scale the content.

It seem to occur when just after Irrlicht is rescaling the device to match the window. Got the "resizing window to xx,xx" on the console then the crash occur.
Here is a screenshot:
Image
What I find strange is that it only happen when I use the maximize icon. If I scale the window manually by the border it doesnt crash.
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: The latest SVN bugs thread

Post by CuteAlien »

Guess I should have been more suspicious about finding a c-functions for 64 bit which seemed to do just what I needed *sigh*. Thanks for reporting. I'll fix it on monday.

Do you have the scaling crash also in the examples? (or can't they scale? I'm not on Windows right now...).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: The latest SVN bugs thread

Post by hendu »

It's a C99 standard function, and is fine on every other compiler except VS.
Foaly
Posts: 142
Joined: Tue Apr 15, 2014 8:45 am
Location: Germany

Compile fails with D3D8.

Post by Foaly »

Since rev. 4794 compile fails with D3D8.
File: CD3D8MaterialRenderer.h, line 121 and it says, CD3D8MaterialRenderer::getD3DModulate() doesn't exist.
I'm using Visual Studio 2010.
1>------ Erstellen gestartet: Projekt: Irrlicht, Konfiguration: Release Win32 ------
1>CD3D8Driver.cpp
1>source\irrlicht\CD3D8MaterialRenderer.h(121): error C2039: 'getD3DModulate': Ist kein Element von 'irr::video::CD3D8MaterialRenderer'
1>source\irrlicht\CD3D8MaterialRenderer.h(54): Siehe Deklaration von 'irr::video::CD3D8MaterialRenderer'
1>source\irrlicht\CD3D8MaterialRenderer.h(121): error C3861: "getD3DModulate": Bezeichner wurde nicht gefunden.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: The latest SVN bugs thread

Post by CuteAlien »

I'd recommend staying with 1.8 when you want D3D8 support. We're about to remove it and it will likely no longer be in Irrlicht 1.9.
Just wondering what are you still using DX8 for? (just wondering because it's been a while since someone needed that...)

@christianclavet: svn compiles again on VS.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply