bugClanLib - Bugs: bug #9912, CL_DisplayTarget::current isn't...

 
 

bug #9912: CL_DisplayTarget::current isn't checked by CL_Surface

Submitted by:  STINNER Victor <haypo>
Submitted on:  Fri 06 Aug 2004 04:25:53 PM UTC  
 
Category:  clanNetwork Severity:  3 - Normal
Item Group:  Crash Error Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  0.7.8
Operating System:  Windows Planned Release:  0.7.8

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 16 Sep 2004 09:36:10 AM UTC, comment #2: 

Oups, the patch is in the wrong way. You should use '-R' with patch ...

Excuse me, it was my first patch.

Bye, Haypo

Anonymous
Tue 24 Aug 2004 12:07:17 AM UTC, comment #1: 

Add a patch ;-)

Haypo

Anonymous
Fri 06 Aug 2004 04:25:53 PM UTC, original submission:  

Hi,

I received a mad "SIGSEGV" while I would like to start the game Wormux
(I'm working on porting it to ClanLib 0.7).

(gdb) backtrace
#0  0x400cee2a in CL_Surface (this=0xbffff3f0, provider=0x0,
    delete_provider=true, flag=0) at surface.cpp:52
#1  0x40136237 in CL_ResourceData_Surface::on_load (this=0x80d1f58)
    at resourcedata_surface.cpp:110
#2  0x400629eb in CL_Resource::load (this=0xbffff6f4)
    at Resources/resource.cpp:161
#3  0x400f319c in CL_Sprite (this=0xbffff6f0, resource_id=@0xbffff720,
    manager=0x0) at sprite.cpp:49
#4  0x40125e19 in CL_ResourceData_Font::on_load (this=0x80da678)
    at stl_alloc.h:652
#5  0x400629eb in CL_Resource::load (this=0x80da70c)
    at Resources/resource.cpp:161
#6  0x400fbb96 in CL_Font (this=0x80da708, resource_id=@0x0,
manager=0x0)
    at font.cpp:64
#7  0x08058498 in Police::Charge (this=0x80a8c04,
resource_id=@0xbffff920,
    manager=0x80d5890) at font.cpp:36
#8  0x08058d29 in Wormux::Graphisme::Init (this=0x80a8c10) at
graphism.cpp:49
#9  0x08091be1 in AppWormux::Init (this=0x80aa568) at main.cpp:132
#10 0x08091eae in AppWormux::main (this=0x80aa568) at main.cpp:181
#11 0x40018dfc in main (argc=0, argv=0x0) at Unix/clanapp.cpp:40
#12 0x403e67f8 in __libc_start_main () from /lib/tls/libc.so.6
#13 0x40508ebc in ?? () from /lib/tls/libc.so.6

I understood that I need to open a window before loading first font (from XML resource file). I can correct this bug in my game, but I think that ClanLib should test somewhere :
  assert (CL_DisplayTarget::current != NULL);

Bye, Haypo

STINNER Victor <haypo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #1673:  display_target.patch added by None (5KiB - text/x-patch - Here the patch !!!)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-24 None Attached File- => Added display_target.patch, #1602

Back to the top


Powered by Savane 3.5