application is silently dying on transform or gives access violaiton exception

28 views
Skip to first unread message

Karen Karapetyan

unread,
Nov 5, 2013, 8:52:10 AM11/5/13
to indigo-...@googlegroups.com
Weird issue and hard to catch. In my application I get indigo exception below (both under debugger and from command line, Win7, 64 bit, VS2012).

AccessViolationException was unhandled
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at com.ggasoftware.indigo.Indigo.transform(IndigoObject reaction, IndigoObject monomer)

I tried to separate a sequence of events in the code to reproduce this under debugger but can't do it.
Can you provide me with indigo version that would spit out more debugging info?

Ken 

Mikhail Rybalkin

unread,
Nov 6, 2013, 5:13:14 AM11/6/13
to indigo-...@googlegroups.com
Hello Ken,

We will try to resolve this but can you answer the following questions:

Does it happen frequently? Do you use a specific transformation or a set of transformations? Can it happen because of parallel execution? 

Mikhail

Kenneth (Karen) Karapetyan

unread,
Nov 6, 2013, 6:56:37 AM11/6/13
to indigo-...@googlegroups.com
Hi, Mikhail,

In my application it happens every time (both under debugger and when running from command line). Basically I apply 50+ transformations to each molecule in sdf file. My app fails on very first record and always on specific reaction. However, when I separate reactions and molecule into unit test it works fine. 

Ken

Thanks,
Ken

phone: (240) 205-2004


--
You received this message because you are subscribed to the Google Groups "indigo-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to indigo-genera...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mikhail Rybalkin

unread,
Nov 6, 2013, 7:14:41 AM11/6/13
to indigo-...@googlegroups.com
Hi Ken,

Can you share your transformations so that we can run tests on them?

Best regards,
Mikhail

Karen Karapetyan

unread,
Nov 6, 2013, 8:02:41 AM11/6/13
to indigo-...@googlegroups.com
Here are the part of transformations that I use. My app throws accessviolation on the last reaction  (molecule is irrelevant)

System.AccessViolationException: Attempted to read or write protected memory. Th
is is often an indication that other memory is corrupt.
   at com.ggasoftware.indigo.Indigo.transform(IndigoObject reaction, IndigoObject monomer)


Here are my test with transformations:

[N-,P-,As-,Sb-,O-,S-,Se-,Te-:1][C:2]=[N+,P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c:7]([H,*:13])[n:6][c:5]2[c:4]1[n:11][c:10]([H,*:12])[n:9]2>>[H:1][N:8]1[C:7]([H,*:13])=[N:6][C:5]2=[C:4]([N:11]=[C:10]([H,*:12])[N:9]2)[C:3]1=[S:2]
[H:1][#7:8]-1-[#6:7](-[*:9])=[#7:6]-[#6:5]-2=[#6:4]-1-[#6:12](=[S:13])-[#7:11]-[#6:10](-[*:2])=[#7:3]-2>>[H:1][#7:8]-1-[#6:7](-[*:9])=[#7:6]-[#6:5]-2=[#6:4]-1-[#7:3]=[#6:10](-[*:2])-[#7:11]-[#6:12]-2=[S:13]
[H:1][S:9][C:6]1=[N:5][C:4]([H,*:12])=[C:3]([H,*:11])[C:8](=[O:10])[N:7]1[H:2]>>[H:1][N:5]1[C:4]([H,*:12])=[C:3]([H,*:11])[C:8](=[O:10])[N:7]([H:2])[C:6]1=[S:9]
[H:2][O:10][C:8]1=[N:7][C:6](=[S:9])[N:5]([H:1])[C:4]([H,*:12])=[C:3]1[H,*:11]>>[H:1][N:5]1[C:4]([H,*:12])=[C:3]([H,*:11])[C:8](=[O:10])[N:7]([H:2])[C:6]1=[S:9]
[H:2][O:3][c:4]1[n:5][c:6]([S:7][H:1])[n:8][c:9]([H,*:10])[c:11]1[H,*:12]>>[H:1][N:8]1[C:9]([H,*:10])=[C:11]([H,*:12])[C:4](=[O:3])[N:5]([H:2])[C:6]1=[S:7]
[H:23][C:13]1([H,*:25])[C:12](=[O:24])-[C:11](-[H,*:26])[C:10]2([H,*:27])[C:9]([H,*:28])([H,*:29])[C:8]3([H,*:30])[C:17]([H:21])([C:18](=[O:19])-[C:1]-4=[C:6](-[C:5](-[H,*:33])=[C:4](-[H,*:34])-[C:3](-[H,*:35])=[C:2]-4-[H,*:36])[C:7]3([H,*:32])[H,*:31])[C:16](=[O:20])[C:15]2([H,*:37])[C:14]1=[O:22]>>[H:23][O:24]-[C:12]-1=[C:13](-[H,*:25])-[C:14](=[O:22])[C:15]2([H,*:37])[C:16](-[O:20][H:21])=[C:17]3-[C:18](=[O:19])-[C:1]-4=[C:6](-[C:5](-[H,*:33])=[C:4](-[H,*:34])-[C:3](-[H,*:35])=[C:2]-4-[H,*:36])[C:7]([H,*:32])([H,*:31])[C:8]3([H,*:30])[C:9]([H,*:29])([H,*:28])[C:10]2([H,*:27])[C:11]-1-[H,*:26]

Mikhail Rybalkin

unread,
Nov 12, 2013, 8:12:57 AM11/12/13
to indigo-...@googlegroups.com
Hello Ken,

Thank you for these examples! We tested our development version on them, and there are no issues anymore, while our tests fails with Indigo 1.1.11. 
Can you check this version and confirm that it works fine?

If everything is fine we make a new release.

Best regards,
Mikhail

Karen Karapetyan

unread,
Nov 12, 2013, 11:51:34 AM11/12/13
to indigo-...@googlegroups.com
I did test the universal dev version and I no longer encounter the issue. Great!!

Hope to see 1.1.12 released soon as we were not able to update from 1.1.10 due to 1.1.11 issues.

Ken

Mikhail Rybalkin

unread,
Dec 27, 2013, 5:54:53 AM12/27/13
to indigo-...@googlegroups.com
Hello Ken,

Thank you for send us report for the transformation method. Your issue with access violation has been fixed in Indigo 1.1.12. Could you confirm that you cannot reproduce this bug?

Mikhail

Kenneth Karapetyan

unread,
Dec 27, 2013, 10:20:59 AM12/27/13
to indigo-...@googlegroups.com
so far it is working fine. Thanks.

Ken

Thanks,
Ken

phone: (240) 205-2004


--
Reply all
Reply to author
Forward
0 new messages