View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000101OpenClonkEngine - Networkpublic2010-01-19 17:372010-02-02 17:45
ReporterApe 
Assigned ToClonk-Karl 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product VersionMercurial tip 
Fixed in Version 
Summary0000101: Assertion failed when joining to network game or when someone joins your game
DescriptionWhen I join network game or somebody joins my network game the game crashes with assertion fail:

clonk: openclonk/src/network/C4NetIO.cpp:538: virtual bool C4NetIOTCP::Execute(int, pollfd*): Assertion `fds[cfd].fd == sock' failed.

clonk: openclonk/src/network/C4NetIO.cpp:590: virtual bool C4NetIOTCP::Execute(int, pollfd*): Assertion `fds[cfd].fd == sock' failed.

If I comment the assertions the game works nicely. See the attachment for a hacky patch.
Additional InformationI am using: Arch Linux, cmake, and GCC 4.4.2
TagsNo tags attached.
Attached Filesdiff file icon removeAssertionsC4NetIO.diff [^] (627 bytes) 2010-01-19 17:37 [Show Content]

- Relationships

-  Notes
(0000205)
Ape (reporter)
2010-01-21 16:41

I also found a new assertion fail that occurred during network game and maybe related to these.

clonk: /home/ape/pelit/openclonk/src/network/C4NetIO.cpp:483: virtual bool C4NetIOTCP::Execute(int, pollfd*): Assertion `fds[cfd].fd == pWait->sock' failed.
(0000209)
Randrian (developer)
2010-01-23 20:18

Hmm well, I have the same problem. I commented them out and it seemed to work. But I think there is a reason for these assertions and it shouldn't be a good thing to just comment them out.
(0000250)
Loriel (developer)
2010-02-02 17:36

I removed those assertions!

I could not see how to guarantee the assumption that those assertions were documenting, so instead of trying to iterate in parallel through the polled events and the lists of sockets, so we use a map to figure out each socket's poll result instead.

- Issue History
Date Modified Username Field Change
2010-01-19 17:37 Ape New Issue
2010-01-19 17:37 Ape File Added: removeAssertionsC4NetIO.diff
2010-01-21 16:41 Ape Note Added: 0000205
2010-01-23 20:18 Randrian Note Added: 0000209
2010-01-24 14:50 Newton Category Engine => Engine - Network
2010-02-02 17:36 Loriel Note Added: 0000250
2010-02-02 17:45 Clonk-Karl Status new => resolved
2010-02-02 17:45 Clonk-Karl Resolution open => fixed
2010-02-02 17:45 Clonk-Karl Assigned To => Clonk-Karl


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker