when I load an image to tile or move, he cuts me off and I get this error.
Any solution?
StartGDevelop.sh: línea 11: 12001 Violación de segmento (`core’ generado) GDK_BACKEND=x11 ./GDIDE
when I load an image to tile or move, he cuts me off and I get this error.
Any solution?
StartGDevelop.sh: línea 11: 12001 Violación de segmento (`core’ generado) GDK_BACKEND=x11 ./GDIDE
There is a bug with the TileMap object related to the image size vs tile size (it seems to crash if the tile is bigger than the texture itself), another report here: [url]Crash when I try to use a tilemap object D:]
This should be fixed for the next version (hope it’s your bug)
You can check if the image mode is RGB (not Indexed) too, you can do it with GIMP (Image >> Mode >> RGB)
It’s fixed in the next version. For now, try to have a tile size that is not bigger than the whole tileset.
EDIT : Are you running GDevelop on Arch Linux ? You should have the lastest version (3.6.81). So, this might be another bug ? Can you provide us the image you used ?
image 32x32
tile size larger than image
size tile> image size?
A tile is a part of a tileset, your tileset is the texture (32x32), a tile could be a 8x8 water section. When setup the TileMap object, you have to set the tile size, i.e. 8x8, so you can select 8x8 sections to make the map
Ok ! You need to be more precise when talking about a problem because you are talking about the Tiled Sprite Object and the TileMap Object (we all thought you were talking about this one). So, everything we said is irrelevant.
In your picture, you haven’t set the texture (you need to click on the
button )
if the texture is loaded into the tile, only it works a few times there it closed me and throws me the error and posted. and will not let me upload new tile I have to create a new project again.
Can you launch GDevelop with gdb to get a backtrace of the crash ? (you’ll need to install gdb if not already installed).
Then, do :
cd /opt/gdevelop
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
gdb ./GDIDE
Then, when gdb started (in the console), do :
run
The program is now starting (way more slower than as usual). Then, try to reproduce the crash. Instead of closing, GDevelop will freeze when the crash occurs. Go back (without closing GDevelop) to the console and type :
bt
And post here what this command shown.
subire un video
There’s no bug here. Can you do what I wrote in my previous post ?
That’s not what I want, please, do what I’ve written in the post…
You forgot to type the following command before gdb ./GDIDE :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
(dont forget [size=150]:.[/size] at the end)
luis@Luis-Pc /o/gdevelop> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
fish: Unknown command ‘export’
You’re not using bash as command interpreter. So, do this instead (you need bash installed indeed) :
bash -c "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:."
Or you might want to switch to bash to launch the debugging commands with gdb that Victor wrote. That will be easier and will work for sure
[luis@Luis-Pc gdevelop]$ gdb ./GDIDE
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “x86_64-unknown-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from ./GDIDE…(no debugging symbols found)…done.
(gdb) run
Starting program: /opt/gdevelop/GDIDE
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/usr/lib/libthread_db.so.1”.
GDevelop initialization started:
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
ImageManager: Loading agua.png.ImageManager: Loading 1.png.ImageManager: Loading 2.png.ImageManager: Loading 3.png.ImageManager: Loading 4.png.ImageManager: Loading 5.png.ImageManager: Loading 6.png.ImageManager: Loading 7.png.ImageManager: Loading 8.png.ImageManager: Loading 0.png.CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
Launching post task
Preparing linking task for scene Nivel1…
New pending task added (Linking code for scene Nivel1)
Task ended.
Processing task Linking code for scene Nivel1…
Launching compiler process…
g++ -std=gnu++11 -fPIC -o “/tmp/GDTemporaries/GD0x2623ea0Code.dll” -shared “/tmp/GDTemporaries/GD0x2623ea0ObjectFile.o” -L"/opt/gdevelop/" -L"/opt/gdevelop/CppPlatform/Extensions/" -lGDCpp -lstdc++ -lGDCore “/opt/gdevelop/libsfml-audio.so.2” “/opt/gdevelop/libsfml-network.so.2” “/opt/gdevelop/libsfml-graphics.so.2” “/opt/gdevelop/libsfml-window.so.2” “/opt/gdevelop/libsfml-system.so.2”
CodeCompilerProcess created.
CodeCompilerProcess terminated with status 0.
CodeCompiler notified that the current process ended work.
Compilation succeeded.
Launching post task
Task ended.
No more task to be processed.
ImageManager: Loading . Resource not found.
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion ‘GTK_IS_WIDGET (widget)’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_window_resize: assertion ‘height > 0’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
(GDIDE:24108): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion ‘width >= -1’ failed
[New Thread 0x7fff447f0700 (LWP 24240)]
[New Thread 0x7fff46ff5700 (LWP 24224)]
[New Thread 0x7fff477f6700 (LWP 24194)]
[New Thread 0x7fff47ff7700 (LWP 24193)]
[New Thread 0x7fff487f8700 (LWP 24192)]
[New Thread 0x7fff48ff9700 (LWP 24191)]
[New Thread 0x7fff497fa700 (LWP 24190)]
[New Thread 0x7fff49ffb700 (LWP 24189)]
[New Thread 0x7fff4a7fc700 (LWP 24188)]
[New Thread 0x7fff4affd700 (LWP 24187)]
[New Thread 0x7fff4b7fe700 (LWP 24186)]
[New Thread 0x7fff4bfff700 (LWP 24185)]
[New Thread 0x7fff50ff9700 (LWP 24184)]
[New Thread 0x7fff517fa700 (LWP 24183)]
[New Thread 0x7fff51ffb700 (LWP 24182)]
[New Thread 0x7fff527fc700 (LWP 24181)]
[New Thread 0x7fff537fe700 (LWP 24180)]
[New Thread 0x7fff53fff700 (LWP 24179)]
[New Thread 0x7fff58ff9700 (LWP 24178)]
[New Thread 0x7fff597fa700 (LWP 24177)]
[New Thread 0x7fff59ffb700 (LWP 24176)]
[New Thread 0x7fff5a7fc700 (LWP 24175)]
[New Thread 0x7fff5affd700 (LWP 24174)]
[New Thread 0x7fff52ffd700 (LWP 24173)]
[New Thread 0x7fff5b7fe700 (LWP 24172)]
[New Thread 0x7fff5bfff700 (LWP 24171)]
[New Thread 0x7fff90ff9700 (LWP 24170)]
[New Thread 0x7fff917fa700 (LWP 24169)]
[New Thread 0x7fff91ffb700 (LWP 24168)]
[New Thread 0x7fff927fc700 (LWP 24167)]
[New Thread 0x7fff937fe700 (LWP 24166)]
[New Thread 0x7fff93fff700 (LWP 24165)]
[New Thread 0x7fff98ff9700 (LWP 24164)]
[New Thread 0x7fff997fa700 (LWP 24163)]
[New Thread 0x7fff99ffb700 (LWP 24162)]
[New Thread 0x7fff9a7fc700 (LWP 24161)]
[New Thread 0x7fff9affd700 (LWP 24160)]
[New Thread 0x7fff92ffd700 (LWP 24159)]
[New Thread 0x7fff9b7fe700 (LWP 24158)]
[New Thread 0x7fff9bfff700 (LWP 24157)]
[New Thread 0x7fffd0ff9700 (LWP 24156)]
[New Thread 0x7fffd17fa700 (LWP 24155)]
[New Thread 0x7fffd1ffb700 (LWP 24154)]
[New Thread 0x7fffd27fc700 (LWP 24153)]
[New Thread 0x7fffd2ffd700 (LWP 24152)]
[New Thread 0x7fffd37fe700 (LWP 24151)]
[New Thread 0x7fffd88cc700 (LWP 24150)]
[New Thread 0x7fffd90cd700 (LWP 24149)]
[New Thread 0x7fffd98ce700 (LWP 24148)]
[New Thread 0x7fffda0cf700 (LWP 24147)]
[New Thread 0x7fffda8d0700 (LWP 24146)]
[New Thread 0x7fffd3fff700 (LWP 24145)]
[New Thread 0x7fffdb0d1700 (LWP 24144)]
[New Thread 0x7fffe467f700 (LWP 24140)]
Program received signal SIGSEGV, Segmentation fault.
__cxxabiv1::__dynamic_cast (src_ptr=0xf88f20, src_type=0x6b58d8 ,
dst_type=0x6be5f0 , src2dst=0)
at /build/gcc-multilib/src/gcc-5-20150623/libstdc+±v3/libsupc++/dyncast.cc:55
55 /build/gcc-multilib/src/gcc-5-20150623/libstdc+±v3/libsupc++/dyncast.cc: No existe el fichero o el directorio.
(gdb) bt
#0 __cxxabiv1::__dynamic_cast (src_ptr=0xf88f20, src_type=0x6b58d8 ,
dst_type=0x6be5f0 , src2dst=0)
at /build/gcc-multilib/src/gcc-5-20150623/libstdc+±v3/libsupc++/dyncast.cc:55
#1 0x00007ffff4d7c01c in ResourcesEditor::GetSelectedFolderItem() () from libGDCore.so
#2 0x00007ffff4d7f38c in ResourcesEditor::AddResources(std::vector<std::string, std::allocatorstd::string > const&) () from libGDCore.so
#3 0x00007ffff4d8325a in ResourcesEditor::OnAddImageBtClick(wxCommandEvent&) () from libGDCore.so
#4 0x00007ffff6c9793e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
() from /usr/lib/libwx_baseu-3.0.so.0
#5 0x00007ffff6e2f2e8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#6 0x00007ffff6e2f6de in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
from /usr/lib/libwx_baseu-3.0.so.0
#7 0x00007ffff6e2f76e in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#8 0x00007ffff6e2f5a3 in wxEvtHandler::DoTryChain(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#9 0x00007ffff6e2f895 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#10 0x00007ffff757d7a8 in wxWindowBase::TryAfter(wxEvent&) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#11 0x00007ffff5cd84d8 in wxAuiToolBar::OnLeftUp(wxMouseEvent&) () from /usr/lib/libwx_gtk2u_aui-3.0.so.0
#12 0x00007ffff6c9793e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
() from /usr/lib/libwx_baseu-3.0.so.0
#13 0x00007ffff6e2f2e8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#14 0x00007ffff6e2f3eb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
from /usr/lib/libwx_baseu-3.0.so.0
#15 0x00007ffff6e2f7a8 in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#16 0x00007ffff6e2f833 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#17 0x00007ffff6e2f895 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#18 0x00007ffff6e2f5f7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#19 0x00007ffff7386b3b in ?? () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#20 0x00007ffff0a3790f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x00007fffefa602f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0x00007fffefa7202c in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0x00007fffefa7a195 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
—Type to continue, or q to quit—
#24 0x00007fffefa7a8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x00007ffff0b4ebac in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00007ffff0a36054 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007ffff0a364eb in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x00007ffff06ab2cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#29 0x00007fffef78b9fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007fffef78bce0 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007fffef78c002 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#32 0x00007ffff0a35467 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007ffff7358485 in wxGUIEventLoop::DoRun() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#34 0x00007ffff6cdcc53 in wxEventLoopBase::Run() () from /usr/lib/libwx_baseu-3.0.so.0
#35 0x00007ffff73db13d in wxDialog::ShowModal() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#36 0x00007fffe09b7a75 in TiledSpriteObject::EditObject(wxWindow*, gd::Project&, gd::MainFrameWrapper&) ()
from ./CppPlatform/Extensions//TiledSpriteObject.xgde
#37 0x00007ffff4dc57d2 in gd::LayoutEditorCanvas::OnCreateObjectSelected(wxCommandEvent&) () from libGDCore.so
#38 0x00007ffff6c9793e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
() from /usr/lib/libwx_baseu-3.0.so.0
#39 0x00007ffff6e2f2e8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#40 0x00007ffff6e2f6de in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
from /usr/lib/libwx_baseu-3.0.so.0
#41 0x00007ffff6e2f76e in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#42 0x00007ffff6e2f833 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#43 0x00007ffff6e2f895 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#44 0x00007ffff6e2f5f7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#45 0x00007ffff751edb0 in wxMenuBase::SendEvent(int, int) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#46 0x00007ffff73f73b5 in ?? () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#47 0x00007fffefa602f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#48 0x00007fffefa7202c in ?? () from /usr/lib/libgobject-2.0.so.0
#49 0x00007fffefa7a688 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#50 0x00007fffefa7a8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#51 0x00007ffff0b4d936 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#52 0x00007ffff0a4981d in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
—Type to continue, or q to quit—
#53 0x00007ffff0a49bbb in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#54 0x00007ffff0a3790f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#55 0x00007fffefa602f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#56 0x00007fffefa71f22 in ?? () from /usr/lib/libgobject-2.0.so.0
#57 0x00007fffefa7a195 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#58 0x00007fffefa7a8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#59 0x00007ffff0b4ebac in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#60 0x00007ffff0a36054 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#61 0x00007ffff0a364eb in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#62 0x00007ffff06ab2cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#63 0x00007fffef78b9fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#64 0x00007fffef78bce0 in ?? () from /usr/lib/libglib-2.0.so.0
#65 0x00007fffef78bd8c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#66 0x00007ffff0a35681 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#67 0x00007ffff73821bd in wxWindow::DoPopupMenu(wxMenu*, int, int) () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#68 0x00007ffff7581113 in wxWindowBase::PopupMenu(wxMenu*, int, int) ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0
#69 0x00007ffff4dcf9e2 in gd::LayoutEditorCanvas::OnRightUp(wxMouseEvent&) () from libGDCore.so
#70 0x00007ffff6c9793e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
() from /usr/lib/libwx_baseu-3.0.so.0
#71 0x00007ffff6e2f2e8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#72 0x00007ffff6e2f6de in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
from /usr/lib/libwx_baseu-3.0.so.0
#73 0x00007ffff6e2f76e in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#74 0x00007ffff6e2f833 in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#75 0x00007ffff6e2f895 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#76 0x00007ffff6e2f5f7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-3.0.so.0
#77 0x00007ffff7386b3b in ?? () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#78 0x00007ffff0a3790f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#79 0x00007fffefa602f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#80 0x00007fffefa7202c in ?? () from /usr/lib/libgobject-2.0.so.0
#81 0x00007fffefa7a195 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
—Type to continue, or q to quit—
#82 0x00007fffefa7a8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#83 0x00007ffff0b4ebac in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#84 0x00007ffff0a36054 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#85 0x00007ffff0a364eb in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#86 0x00007ffff06ab2cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#87 0x00007fffef78b9fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#88 0x00007fffef78bce0 in ?? () from /usr/lib/libglib-2.0.so.0
#89 0x00007fffef78c002 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#90 0x00007ffff0a35467 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#91 0x00007ffff7358485 in wxGUIEventLoop::DoRun() () from /usr/lib/libwx_gtk2u_core-3.0.so.0
#92 0x00007ffff6cdcc53 in wxEventLoopBase::Run() () from /usr/lib/libwx_baseu-3.0.so.0
#93 0x00007ffff6c9bb46 in wxAppConsoleBase::MainLoop() () from /usr/lib/libwx_baseu-3.0.so.0
#94 0x00007ffff6d328f0 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-3.0.so.0
#95 0x0000000000488ba8 in main ()
(gdb)
(gdb) quit
A debugging session is active.
Inferior 1 [process 24108] will be killed.
Quit anyway? (y or n) y
[luis@Luis-Pc gdevelop]$