Failed To Handle Error Condition Correctly Exiting General Fault Exception
CommunityCategoryBoardKnowledge BaseUsers turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean NX Customization and Programming Forums NX Programming & Customization Forum Reply Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page All Forum Topics Previous Topic Next Topic NX10 Linux crash PunkRider Experimenter Experimenter Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content 12-17-2015 06:57 PM Hello I have Ubuntu Linux willy , kernel 4.4 , amd64 , 8Gb of RAMI stumbled on this accidental crash , i cannot reproduce it , i started to draw a part and while arranging some windows , NX freezed and after a while crashed(in the meantime i was clicking on menus without succes).I will try harder to reproduce it , if i will succeed then i will post here the steps.Console output error:$ /usr/ugs100/bin/ugmenuExecuting ugmenux...^C*** ERROR system never initialised, sending output to stderr ****** EXCEPTION: O/S ERROR: signal 2 in line 2332 of /plm/cynas/ipbuild/ugnx100/build/sandbox/src/syss/error/ind/error.cxx at Thu Dec 17 15:41:39 2015 PST+++ General Fault Exception[ 0] 7fa785a3b38b near UGS::Error::Exception:rintTracebackToLog()+0x93 (libsyss.so)[ 1] 7fa785a3b3f2 near UGS::Error::Exception::doTraceback(bool) const+0x2e (libsyss.so)[ 2] 7fa7859f5e29 near UGS::Error:ignal:ignal(char const*, int, int, char const*, __va_list_tag*)+0x3f (libsyss.so)[ 3] 7fa7859f5e60 near UGS::Error:ignal::raise(char const*, int, int, char const*, __va_list_tag*)+0x1a (libsyss.so)[ 4] 7fa7859f6064 near UGS::Error:ignal::raise(char const*, int, int, char const*, ...)+0x80 (libsyss.so)[ 5] 7fa7858fd19e near general_fault_handler(int)+0x167 (libsyss.so)[ 6] 7fa783d372f0 -- signal -- (libc.so.6)[ 7] 7fa783dfd8c0 near __poll+0x10 (libc.so.6)[ 8] 7fa78447af72 near _XtWaitForSomething+0x472 (libXt.so.6)====================================================Failed to handle error condition correctly - exitingGeneral Fault Exception====================================================*** COLLAPSE:: in line 1353 of /plm/cynas/ipbuild/ugnx100/build/sandbox/src/syss/error/ind/error.cxx at Thu Dec 17 15:41:39 2015 PST+++ Terminating due to uncaught exception[ 0] 7fa785a3b38b near UGS::Error::Exception:rintTracebackToLog()+0x93 (libsyss.so
Join INTELLIGENT WORK FORUMSFOR ENGINEERING PROFESSIONALS Log In Come Join Us! Are you anEngineering professional?Join Eng-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Eng-Tips Posting Policies Jobs Link To This Forum! Add Stickiness To Your Site By Linking To https://community.plm.automation.siemens.com/t5/NX-Programming-Customization/NX10-Linux-crash/td-p/325785 This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Siemens: UG/NX Forum at Eng-Tips HomeForumsEngineering Computer ProgramsEngineering ProgramsSiemens: UG/NX Forum Error in getting control points for surface in UF_MODL_ask_bsurf thread561-366765 Forum Search FAQs Links MVPs Error in getting control points for surface in UF_MODL_ask_bsurf Error in getting control points http://www.eng-tips.com/viewthread.cfm?qid=366765 for surface in UF_MODL_ask_bsurf WilsonBlr (Aerospace) (OP) 19 Jun 14 09:53 I am trying to get control points and other data for a NURBS surface. I am using the UF_MODL_ask_bsurf method. CODE --> UF_MODL_bsurface_p_t t_struc_info; UF_CALL(UF_MODL_ask_bsurf(SurfId, t_struc_info)); I get the following error without any proper error message or error code. ==================================================== Failed to handle error condition correctly - exiting General Fault Exception ==================================================== Has anybody come across this or is there a workaround for this ? Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Cancel Red Flag SubmittedThank you for helping keep Eng-Tips Forums free from inappropriate posts.The Eng-Tips staff will check this out and take appropriate action. Close Reply To This Thread Posting in the Eng-Tips forums is a member-only feature. Click Here to join Eng-Tips and talk with other members! Resources White Paper: Agile Product Engineering and Improved Product Outcomes Today’s product development cycle is fraught with difficulties. Increased demands for complex functionality and reduced product development windows
Sign in Pricing Blog Support Search GitHub This repository Watch 4 Star 1 Fork https://github.com/XQuartz/xquartz-old-tickets/blob/master/ticket/289.md 0 XQuartz/xquartz-old-tickets Code Pull requests 0 Projects 0 Pulse Graphs http://stackoverflow.com/questions/737653/whats-the-best-technique-for-exiting-from-a-constructor-on-an-error-condition-i Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show Nothing to show Find file Copy path xquartz-old-tickets/ticket/289.md Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 383 lines (230 sloc) 16.6 KB original_url created_at updated_at closed_at failed to status type resolution reporter owner priority milestone component version https://xquartz.macosforge.org/trac/ticket/289 2009-07-27 22:02:13 -0700 2015-08-13 02:02:52 -0700 2009-08-03 11:58:57 -0700 closed usability Fixed marcel@… jeremyhu@… Important 2.4.0 xserver dev (xorg-server-1.5-apple) 2.4.0_rc1 color changed for some menus and graphics XQuartz 2.4.0_rc1 (xorg-server 1.5.3-apple12) I have installed the 2.4.0_rc1 and found out a failed to handle problem whit the colors in the dialogs on NX. Whiteout any change on the NX installation, the colors in the dialog's are not correct while the graphic windows are correct. Last login: Mon Jul 27 14:33:59 on ttys000 Marcels-iMac:~ marcel$ defaults read org.x.X11 { "NSWindow Frame x11_prefs" = "82 446 613 324 0 0 1680 1028 "; SULastCheckTime = 2009-07-27 09:48:52 +0200; "app_to_run" = "/usr/X11/bin/xterm"; "cache_fonts" = 1; depth = -1; "done_xinit_check" = 1; "enable_fake_buttons" = 0; "enable_key_equivalents" = 1; "enable_system_beep" = 0; "fullscreen_menu" = 0; "login_shell" = "/bin/sh"; "no_auth" = 0; "nolisten_tcp" = 1; rootless = 1; "sync_clipboard_to_pasteboard" = 1; "sync_keymap" = 0; "sync_pasteboard" = 1; "sync_pasteboard_to_clipboard" = 0; "sync_pasteboard_to_primary" = 1; "sync_primary_on_select" = 0; "wm_click_through" = 1; "wm_ffm" = 0; "wm_focus_on_new_window" = 0; } Marcels-iMac:~ marcel$ marcel@… commented on Jul 27, 2009 Attachment Bild 1.png (270.1 KB) added jeremyhu@… commented on Jul 28, 2009 Status changed
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What's the best technique for exiting from a constructor on an error condition in C++ up vote 14 down vote favorite 5 What's the best technique for exiting from a constructor on an error condition in C++? In particular, this is an error opening a file. Thanks for the responses. I'm throwing an exception. Here's the code (don't know if it's the best way to do it, but it's simple) // Test to see if file is now open; die otherwise if ( !file.is_open() ) { cerr << "Failed to open file: " << m_filename << endl; throw ("Failed to open file"); } One think I like about C++ is you don't have to declare thrown exceptions on the method declarations. c++ constructor share|improve this question edited Apr 10 '09 at 16:32 asked Apr 10 '09 at 13:43 Jack BeNimble 10.8k2584148 I'd recommend throwing an std::runtime_error, or at the least an std::exception instead of a const char*. –GManNickG Apr 10 '09 at 20:33 possible duplicate of How to handle failure in constructor in C++? –BЈовић Jun 7 '13 at 6:13 add a comment| 8 Answers 8 active oldest votes up vote 22 down vote accepted The best suggestion is probably what parashift says. But read my caution note below as well please. See parashift FAQ 17.2 [17.2] How can I handle a constructor that fails? Throw an exception. Constructors don't have a return type, so it's not possible to use return codes. The best way to signal constructor failure is therefore to throw an exception. If you don't have the option of using exceptions, the "least bad" work-around is to put the object into a "zombie" state by setting an internal status bit so the object acts sort of like it's dead even though it is technically still alive. The idea