Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS X: GoldenDict crashes when trying to index BGL files #128

Closed
chulai opened this issue Sep 25, 2012 · 7 comments
Closed

Mac OS X: GoldenDict crashes when trying to index BGL files #128

chulai opened this issue Sep 25, 2012 · 7 comments
Milestone

Comments

@chulai
Copy link
Member

chulai commented Sep 25, 2012

GoldenDict crashes when trying to index BGL files.

Thread 4 Crashed:
0   com.yourcompany.goldendict       0x0006c185 Babylon::read(std::string&, std::string&) + 179
1   com.yourcompany.goldendict       0x00070145 Bgl::makeDictionaries(std::vector<std::string, std::allocator<std::string> > const&, std::string const&, Dictionary::Initializing&) + 691
2   com.yourcompany.goldendict       0x00058632 LoadDictionaries::handlePath(Config::Path const&) + 972
3   com.yourcompany.goldendict       0x00058f19 LoadDictionaries::run() + 53

More info:
http://goldendict.org/forum/viewtopic.php?f=4&t=1623
http://goldendict.org/forum/viewtopic.php?f=4&t=1213&start=50#p5740
http://goldendict.org/forum/viewtopic.php?f=4&t=1213&start=60#p6582

@dragonroot
Copy link
Member

Is it possible to hunt this down to a particular line within Babylon::read()?

@chulai
Copy link
Member Author

chulai commented Sep 25, 2012

I remember the exception was thrown in one of the calls to Babylon::convertToUtf8( std::string &s, unsigned int type ) when it was, in turn, calling iconv() function.
The error displayed was "Error in iconv conversion".
I think there is some incompatibility with the iconv lib implementation bundled with OS X (libiconv). Anyhow, I will try to find out the offending line number.
iconv might be also the culprit with this BGL indexing bug: #4

@Abs62
Copy link
Member

Abs62 commented Dec 27, 2012

Maybe it is same case as it detected under Windows lately (http://goldendict.org/forum/viewtopic.php?f=10&t=2047 - in Russian) and fixed in commit 193eb55

@chulai
Copy link
Member Author

chulai commented Dec 28, 2012

@Abs62 unfortunately the issue still remains unresolved.

Screen Shot 2012-12-28 at 09 11 02

@chulai
Copy link
Member Author

chulai commented Feb 14, 2013

Amazing! @Abs62, your commit fixed the issue. I could index 19 different BGL dictionaries.
Screen shot 2013-02-14 at 7 31 42 AM

@chulai
Copy link
Member Author

chulai commented Feb 14, 2013

I'm closing this issue. Hope we can coordinate a new EA build for all platforms soon.

@chulai chulai closed this as completed Feb 14, 2013
@nikolya344
Copy link

chulai, can you explain how you have used bgl.cc file?

hosiet pushed a commit to hosiet/goldendict that referenced this issue Dec 22, 2022
Fix crash when search in webengine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants