Closed marcin-szmagara closed 10 months ago
Are your video card supporting opengl 2.0 and your drivers up to date?
Yes, as indicated by the first two log lines.
The only difference between this client and eduabart is that there is no longer support for opengl 1.0, try updating your drivers, otc/edubart should probably be pointing to the 1.0 context.
Well, I think I'm getting this too.
GPU NVIDIA GeForce GTX 1650/PCIe/SSE2
OpenGL 4.6.0 NVIDIA 535.113.01
== application started at Oct 28 2023 14:56:24
== operating system: Manjaro Linux
OTClient - Redemption 1.0 rev 0.000 (desenv) built on Oct 28 2023 for arch x64
Loaded module 'corelib'
Loaded module 'gamelib'
Loaded module 'startup'
Loaded module 'client'
Loaded module 'client_styles'
Using configured locale: en
Loaded module 'client_locales'
Loaded module 'client_topmenu'
Loaded module 'client_background'
Loaded module 'client_options'
Loaded module 'client_entergame'
Loaded module 'game_features'
Loaded module 'game_things'
Loaded module 'client_terminal'
Loaded module 'client_serverlist'
Loaded module 'game_interface'
Loaded module 'game_prey'
Loaded module 'game_imbuing'
Loaded module 'game_hotkeys'
Loaded module 'game_questlog'
Loaded module 'game_textmessage'
Loaded module 'game_console'
Loaded module 'game_actionbar'
Loaded module 'game_outfit'
Loaded module 'game_healthinfo'
Loaded module 'game_skills'
Loaded module 'game_inventory'
Loaded module 'game_combatcontrols'
Loaded module 'game_containers'
Loaded module 'game_viplist'
Loaded module 'game_battle'
Loaded module 'game_minimap'
Loaded module 'game_npctrade'
Loaded module 'game_textwindow'
Loaded module 'game_playertrade'
Loaded module 'game_bugreport'
Loaded module 'game_playerdeath'
Loaded module 'game_playermount'
Loaded module 'game_ruleviolation'
Loaded module 'game_market'
Loaded module 'game_spelllist'
Loaded module 'game_cooldown'
Loaded module 'game_modaldialog'
Loaded module 'game_unjustifiedpoints'
Loaded module 'game_shaders'
Loaded module 'game_attachedeffects'
failed to load a widget from 'game_healthcircle'
Loaded module 'game_healthcircle'
Startup done :]
AddressSanitizer:DEADLYSIGNAL
=================================================================
==372140==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000998 (pc 0x7fa737f19b29 bp 0x7fa722fd6130 sp 0x7fa722fd6118 T12)
==372140==The signal is caused by a READ memory access.
==372140==Hint: address points to the zero page.
#0 0x7fa737f19b29 (/usr/lib/libGL.so.1+0x45b29) (BuildId: c00c5fcceeba1bcbcd092deb7ab9d75f9314baee)
#1 0x55fa8b18b424 in Texture::setSmooth(bool) /home/ivopr/Git/side/wodbo/otclient/src/framework/graphics/texture.cpp:130
#2 0x55fa8b18fb91 in TextureManager::getTexture(std::__cxx11::basic_string
I didn't test with edubart/otclient though
I am having similar issues here!
I am building on an Ubuntu 22.
Here a little bit of the bt info while running it on with gdb:
...
Unable to translate: "Prey Dialog"
Unable to translate: "Prey Tracker"
Unable to translate: "You have %s hours and %s minutes left"
Unable to translate: "You don't may receive experience and loot from monsters"
Thread 13 "otclient" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffecae2640 (LWP 304919)]
0x00007ffff7e9db29 in glBindTexture () from /lib/x86_64-linux-gnu/libGL.so.1
(gdb) bt
#0 0x00007ffff7e9db29 in glBindTexture () from /lib/x86_64-linux-gnu/libGL.so.1
#1 0x00005555559f1661 in Texture::bind() ()
#2 0x00005555559f172b in Texture::setSmooth(bool) ()
#3 0x00005555559f3832 in TextureManager::getTexture(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) ()
#4 0x0000555555cf0ca9 in Creature::setIconTexture(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#5 0x0000555555c38301 in void std::__invoke_impl<void, void (Creature::* const&)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Creature*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::__invoke_memfun_deref, void (Creature::* const&)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Creature*&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
...
It would be greatly beneficial to have access to the correct files for the version I'm currently testing (1321). Unfortunately, finding these files has proven quite challenging on the forums. If there's a comprehensive tutorial or any guidance available on how to obtain and place the necessary files in the data/things/VERSION/ directory, that would be very helpful as well.
I've partilally solved!
The issue were on the lua scripts that were trying to load images using the path /images/game/npcicons/icon_chat
but it was not finding due to the use of relative path.
By replacing all the relative references with the full path in my system I could load the client without issues!
In the above example I've replaced with:
/home/user/otclient/data/images/game/npcicons/icon_chat
But instead of crashing it is not finding the file.
The real issue was on the:
TexturePtr TextureManager::getTexture(const std::string& fileName, bool smooth) {
method when trying to set smooth:
texture->setSmooth(smooth);
I've changed so it force it to be false and now it is working with all the ui elements being loaded.
Priority
High
Area
What happened?
I tried connecting to my local
12.86
forogttenserver instance, as well as a public8.6
otserver, which works fine withedubart/otclient
(and also uses forgottenserver).I get to pick a character and while it's loading the segfault occurs.
Logs
``` ms@pc:~/rep/otclient$ ./otclient GPU NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 OpenGL 4.6.0 NVIDIA 525.105.17 [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe == application started at Sep 27 2023 14:16:23 == operating system: Debian GNU/Linux 12 OTClient - Redemption 1.0 rev 0.000 (desenv) built on Sep 27 2023 for arch x64 [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe [ALSOFT] (EE) available update failed: Broken pipe Startup done :] Segmentation fault (core dumped) ```Backtrace
``` #0 0x00007ffff7ea5b29 in glBindTexture () from /lib/x86_64-linux-gnu/libGL.so.1 #1 0x0000555555761ad4 in Texture::bind (this=0x7fffcc348e10) at /home/ms/rep/otclient/src/framework/graphics/texture.cpp:105 #2 Texture::setSmooth (this=0x7fffcc348e10, smooth=What OS are you seeing the problem on?
Linux
Code of Conduct