C4 Engine

Facebook Twitter Google+ YouTube IndieDB
News Explore
Download Demo
Feature List
Licensing Info
Screenshots
Video
Support
Support Forums
C4 Engine Wiki
API Documentation
Release Notes
Purchase My Account

PanelEditor linux crash due to mismatching resource name

Topics about the World Editor and other C4 Engine tools.

PanelEditor linux crash due to mismatching resource name

Postby kucalaba » 13 Sep 2012, 15:13

Our software team is developing a product on Ubuntu Linux using the C4 engine 2.9.1, and we came across a crash when trying to open the Panel editor, due to a missing "Grid" widget. We investigated the problem further and found that there was a mismatch between the resource name set in the PanelGridPage constructor initializer list and the widget resource that is referenced in the Preprocess() methdo. There appears to be a discrepancy with the first letter capitalization of "PanelEditor/grid", whereas FindWidget is looking for "Grid". On disk, the resource name is Grid.pan, located in Data/Tools/PanelEditor. Please confirm and fix as appropriate.

Changing the filename on disk to grid.pan fixes the problem for us in the meantime. Probably the best way to fix this in the engine code is to change the constructor code to reference "PanelEditor/Grid" to be consistent with all the other references in the file.

Thanks!
-Luke K
Battelle Memorial Institute


982 PanelGridPage::PanelGridPage(PanelEditor *editor) :
983 PanelPage(editor, "PanelEditor/grid"),


993 void PanelGridPage::Preprocess(void)
994 {
995 PanelPage::Preprocess();
996
997 gridButton = static_cast<IconButtonWidget *>(FindWidget("Grid"));
kucalaba
New User
 
Posts: 2
Joined: 09 Jul 2012, 09:01

Re: PanelEditor linux crash due to mismatching resource name

Postby Eric Lengyel » 13 Sep 2012, 15:33

Thanks. We also noticed this a few weeks ago (bug report #878) and fixed it for the next release.
User avatar
Eric Lengyel
Terathon Employee
Terathon Employee
 
Posts: 17101
Joined: 09 May 2005, 19:00
Location: Roseville, CA


Return to Editor and Tools

Who is online

Users browsing this forum: No registered users and 1 guest

Company Contact Privacy Policy Site Map Copyright © 2001–2013 Terathon Software LLC Terathon Software